Bug in Windows OpenGL settings

Hi,

I have found a bug in the usage of the GL_Attributes in the Windows
specific code. It prevented the correct setting of the color and
z-buffer bit depths. Here is the diff:

cvs -z9 diff SDL_wingl.c (in directory
e:\LIBS\SDL-1.1\src\video\wincommon)
Index: SDL_wingl.c===================================================================
RCS file: /cvs/SDL/src/video/wincommon/Attic/SDL_wingl.c,v
retrieving revision 1.1.2.7
diff -r1.1.2.7 SDL_wingl.c
69c69
< GL_pfd.cColorBits = this->gl_config.depth_size;

GL_pfd.cColorBits = this->gl_config.buffer_size;
174c174
< value = 0; / ?? What is this? */


  *value = GL_pfd.cColorBits;

177c177
< *value = GL_pfd.cColorBits;

  *value = GL_pfd.cDepthBits;

Proff

Florian ‘Proff’ Schulze - @Florian_Schulze
Homepage: - http://proff.fly.to
PGP-Key available from - http://www.keyserver.net/en/

I have found a bug in the usage of the GL_Attributes in the Windows
specific code. It prevented the correct setting of the color and
z-buffer bit depths. Here is the diff:

Thanks, this fix has been applied to CVS.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software