Fix build when GL_CLIENT_PIXEL_STORE_BIT is not defined
authorSam Lantinga <slouken@libsdl.org>
Tue, 31 Jul 2001 00:11:41 +0000
changeset 1250ae324925dd7
parent 124 bb051fa871aa
child 126 92cbc667a9ff
Fix build when GL_CLIENT_PIXEL_STORE_BIT is not defined
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Mon Jul 23 19:54:31 2001 +0000
     1.2 +++ b/src/video/SDL_video.c	Tue Jul 31 00:11:41 2001 +0000
     1.3 @@ -1475,7 +1475,9 @@
     1.4  		SDL_VideoDevice *this = current_video;
     1.5  
     1.6  		this->glPushAttrib( GL_ALL_ATTRIB_BITS );	/* TODO: narrow range of what is saved */
     1.7 +#ifdef GL_CLIENT_PIXEL_STORE_BIT
     1.8  		this->glPushClientAttrib( GL_CLIENT_PIXEL_STORE_BIT );
     1.9 +#endif
    1.10  
    1.11  		this->glEnable(GL_TEXTURE_2D);
    1.12  		this->glEnable(GL_BLEND);