Skip to content

Commit

Permalink
Fixed SDL_OPENGLBLIT with OpenGL API newer than 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 20, 2002
1 parent 09352e2 commit 350cadd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/video/SDL_video.c
Expand Up @@ -728,11 +728,9 @@ do { \
support the GL_UNSIGNED_SHORT_5_6_5 texture format.
*/
if ( (bpp == 16) &&
(strstr((const char *)video->glGetString(GL_EXTENSIONS),
"GL_EXT_packed_pixels") ||
(strncmp((const char *)video->glGetString(GL_VERSION),
"1.2", 3) == 0)) )
{
(strstr((const char *)video->glGetString(GL_EXTENSIONS), "GL_EXT_packed_pixels") ||
(atof((const char *)video->glGetString(GL_VERSION)) >= 1.2f))
) {
video->is_32bit = 0;
SDL_VideoSurface = SDL_CreateRGBSurface(
flags,
Expand Down

0 comments on commit 350cadd

Please sign in to comment.