Skip to content

Commit

Permalink
Fix build when GL_CLIENT_PIXEL_STORE_BIT is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 31, 2001
1 parent c4bd70a commit daf5ff3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/SDL_video.c
Expand Up @@ -1475,7 +1475,9 @@ void SDL_GL_Lock()
SDL_VideoDevice *this = current_video;

this->glPushAttrib( GL_ALL_ATTRIB_BITS ); /* TODO: narrow range of what is saved */
#ifdef GL_CLIENT_PIXEL_STORE_BIT
this->glPushClientAttrib( GL_CLIENT_PIXEL_STORE_BIT );
#endif

this->glEnable(GL_TEXTURE_2D);
this->glEnable(GL_BLEND);
Expand Down

0 comments on commit daf5ff3

Please sign in to comment.