From 7137fb2366a68e93fc2250739fb36f20bf0b747f Mon Sep 17 00:00:00 2001 From: mcmartin Date: Sun, 22 Jan 2006 06:01:36 +0000 Subject: [PATCH] SDL_GL_DEPTH_SIZE is z-buffer depth, not color depth. UQM uses no z-buffer. Hat tip to Vorn for for the documentation search. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2226 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/graphics/sdl/opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/src/sc2code/libs/graphics/sdl/opengl.c b/sc2/src/sc2code/libs/graphics/sdl/opengl.c index 1f45983b4..1eca99a5f 100644 --- a/sc2/src/sc2code/libs/graphics/sdl/opengl.c +++ b/sc2/src/sc2code/libs/graphics/sdl/opengl.c @@ -105,7 +105,7 @@ AttemptColorDepth (int flags, int width, int height, int bpp) break; } - SDL_GL_SetAttribute (SDL_GL_DEPTH_SIZE, bpp); + SDL_GL_SetAttribute (SDL_GL_DEPTH_SIZE, 0); SDL_GL_SetAttribute (SDL_GL_DOUBLEBUFFER, 1); videomode_flags = SDL_OPENGL;