From afa4c45ea3dbbc61ca4c0da4fc73b4e9df2febe0 Mon Sep 17 00:00:00 2001 From: Per Hedbor <ph@opera.com> Date: Sun, 1 May 2011 02:30:49 +0200 Subject: [PATCH] Avoid 16-bit depth buffers. It is not really optimal nowdays. This should really be configurable --- lib/modules/GLUE.pmod/Driver.pmod/SDL.pike | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/GLUE.pmod/Driver.pmod/SDL.pike b/lib/modules/GLUE.pmod/Driver.pmod/SDL.pike index 7329a03602..5d99c59637 100644 --- a/lib/modules/GLUE.pmod/Driver.pmod/SDL.pike +++ b/lib/modules/GLUE.pmod/Driver.pmod/SDL.pike @@ -248,7 +248,7 @@ void init(void|string title, void|string icon) SDL.gl_set_attribute( SDL.GL_RED_SIZE, 8 ); SDL.gl_set_attribute( SDL.GL_GREEN_SIZE, 8 ); SDL.gl_set_attribute( SDL.GL_BLUE_SIZE, 8 ); - SDL.gl_set_attribute( SDL.GL_DEPTH_SIZE, 8 ); + SDL.gl_set_attribute( SDL.GL_DEPTH_SIZE, 32 ); SDL.gl_set_attribute( SDL.GL_DOUBLEBUFFER, 1 ); #if constant(SDL.Joystick) -- GitLab