Revert Windows using Vulkan (Vulkan has the same glitches OpenGL has on windows)
This commit is contained in:
parent
6c038a7e0f
commit
730a2f1986
3 changed files with 2 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue