mirror of
https://github.com/nothings/stb
synced 2024-12-15 20:32:33 +03:00
Request a 24-bit depth buffer
This commit is contained in:
parent
089b3e4395
commit
feae54a2d9
@ -535,6 +535,7 @@ int SDL_main(int argc, char **argv)
|
||||
SDL_GL_SetAttribute(SDL_GL_RED_SIZE , 8);
|
||||
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
|
||||
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE , 8);
|
||||
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
|
||||
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_COMPATIBILITY);
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
|
||||
|
Loading…
Reference in New Issue
Block a user