src/video/SDL_video.c
changeset 282 b42d80e73896
parent 281 c5010ab8ba35
child 297 f6ffac90895c
     1.1 --- a/src/video/SDL_video.c	Sun Feb 17 19:54:28 2002 +0000
     1.2 +++ b/src/video/SDL_video.c	Wed Feb 20 01:02:33 2002 +0000
     1.3 @@ -728,11 +728,9 @@
     1.4  		   support the GL_UNSIGNED_SHORT_5_6_5 texture format.
     1.5  		 */
     1.6  		if ( (bpp == 16) &&
     1.7 -		     (strstr((const char *)video->glGetString(GL_EXTENSIONS),
     1.8 -		                           "GL_EXT_packed_pixels") ||
     1.9 -		     (strncmp((const char *)video->glGetString(GL_VERSION),
    1.10 -		              "1.2", 3) == 0)) )
    1.11 -		{
    1.12 +		     (strstr((const char *)video->glGetString(GL_EXTENSIONS), "GL_EXT_packed_pixels") ||
    1.13 +		     (atof((const char *)video->glGetString(GL_VERSION)) >= 1.2f))
    1.14 +		   ) {
    1.15  			video->is_32bit = 0;
    1.16  			SDL_VideoSurface = SDL_CreateRGBSurface(
    1.17  				flags,