diff --git a/CMakeLists.txt b/CMakeLists.txt index 31f851f..5045615 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,11 +6,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # Options to set set(availableGraphicsBackends OpenGL3.3 OpenGL2.1 OpenGLES3.0 Vulkan) -if(WIN32) - set(GRAPHICS_BACKEND Vulkan CACHE STRING "Graphics backend to use") -else() - set(GRAPHICS_BACKEND OpenGL3.3 CACHE STRING "Graphics backend to use") -endif() +set(GRAPHICS_BACKEND OpenGL3.3 CACHE STRING "Graphics backend to use") set_property(CACHE GRAPHICS_BACKEND PROPERTY STRINGS ${availableGraphicsBackends}) list(FIND availableGraphicsBackends ${GRAPHICS_BACKEND} graphicsBackendIndex) diff --git a/conanfile.py b/conanfile.py index 5ae3a39..a108bef 100644 --- a/conanfile.py +++ b/conanfile.py @@ -45,7 +45,6 @@ class CompressorRecipe(ConanFile): "use_system_libpng": False, "use_system_libwebp": False, "use_system_zlib": False, - "use_vulkan": True, "enable_svg": True, "enable_skottie": False, "enable_bentleyottmann": True # for some reason, setting this to False results in an error when creating the project diff --git a/src/main.cpp b/src/main.cpp index a3c2af1..9cd21c2 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -603,6 +603,7 @@ SDL_AppResult SDL_AppIterate(void *appstate) { #ifdef USE_BACKEND_VULKAN mS.vulkanWindowContext->getBackbufferSurface()->getCanvas()->drawImage(mS.intermediateSurface->makeTemporaryImage(), 0, 0); + mS.ctx->flushAndSubmit(); mS.vulkanWindowContext->swapBuffers(); #elif USE_BACKEND_OPENGL