Skip to content

Commit

Permalink
Always use 24bit depth
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsando committed Jun 16, 2023
1 parent 546fada commit 345d0f4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions project/src/sdl2/SDL2Stage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 345d0f4

Please sign in to comment.