From 345d0f4655865129634f94ca76bf81288bc380ee Mon Sep 17 00:00:00 2001 From: Hugh Sanderson Date: Fri, 16 Jun 2023 21:39:05 +0800 Subject: [PATCH] Always use 24bit depth --- project/src/sdl2/SDL2Stage.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/project/src/sdl2/SDL2Stage.cpp b/project/src/sdl2/SDL2Stage.cpp index 2b3829d02..244b07a1c 100644 --- a/project/src/sdl2/SDL2Stage.cpp +++ b/project/src/sdl2/SDL2Stage.cpp @@ -2235,11 +2235,7 @@ void CreateMainFrame(FrameCreationCallback inOnFrame, int inWidth, int inHeight, SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); if (inFlags & wfDepthBuffer) - #ifdef HX_MACOS SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24 ); - #else - SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 32 - (inFlags & wfStencilBuffer) ? 8 : 0); - #endif if (inFlags & wfStencilBuffer) SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);