mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-15 10:37:01 +00:00
UI: Disable wxWidgets' new on-by-default compositing for VulkanCanvas
A similar fix had to be done as the official OpenGL canvas, see 2d37e9fbc8
This commit is contained in:
parent
7f57039420
commit
2e33b16513
1 changed files with 3 additions and 0 deletions
|
|
@ -13,6 +13,9 @@ VulkanCanvas::VulkanCanvas(wxWindow* parent, const wxSize& size, bool is_main_wi
|
||||||
{
|
{
|
||||||
Bind(wxEVT_PAINT, &VulkanCanvas::OnPaint, this);
|
Bind(wxEVT_PAINT, &VulkanCanvas::OnPaint, this);
|
||||||
Bind(wxEVT_SIZE, &VulkanCanvas::OnResize, this);
|
Bind(wxEVT_SIZE, &VulkanCanvas::OnResize, this);
|
||||||
|
#if __WXMSW__
|
||||||
|
MSWDisableComposited();
|
||||||
|
#endif
|
||||||
|
|
||||||
auto& canvas = is_main_window ? WindowSystem::GetWindowInfo().canvas_main : WindowSystem::GetWindowInfo().canvas_pad;
|
auto& canvas = is_main_window ? WindowSystem::GetWindowInfo().canvas_main : WindowSystem::GetWindowInfo().canvas_pad;
|
||||||
canvas = initHandleContextFromWxWidgetsWindow(this);
|
canvas = initHandleContextFromWxWidgetsWindow(this);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue