src/video/SDL_video.c
changeset 1341 d02b552e5304
parent 1338 604d73db6802
child 1358 c71e05b4dc2e
equal deleted inserted replaced
1340:58b114ef50e7 1341:d02b552e5304
   796 		   extension, or implements the core OpenGL 1.2 API, it will
   796 		   extension, or implements the core OpenGL 1.2 API, it will
   797 		   support the GL_UNSIGNED_SHORT_5_6_5 texture format.
   797 		   support the GL_UNSIGNED_SHORT_5_6_5 texture format.
   798 		 */
   798 		 */
   799 		if ( (bpp == 16) &&
   799 		if ( (bpp == 16) &&
   800 		     (SDL_strstr((const char *)video->glGetString(GL_EXTENSIONS), "GL_EXT_packed_pixels") ||
   800 		     (SDL_strstr((const char *)video->glGetString(GL_EXTENSIONS), "GL_EXT_packed_pixels") ||
   801 		     (atof((const char *)video->glGetString(GL_VERSION)) >= 1.2f))
   801 		     (SDL_atof((const char *)video->glGetString(GL_VERSION)) >= 1.2f))
   802 		   ) {
   802 		   ) {
   803 			video->is_32bit = 0;
   803 			video->is_32bit = 0;
   804 			SDL_VideoSurface = SDL_CreateRGBSurface(
   804 			SDL_VideoSurface = SDL_CreateRGBSurface(
   805 				flags, 
   805 				flags, 
   806 				width, 
   806 				width,