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 125 0ae324925dd7
parent 124 bb051fa871aa
child 126 92cbc667a9ff
Fix build when GL_CLIENT_PIXEL_STORE_BIT is not defined
src/video/SDL_video.c
--- a/src/video/SDL_video.c	Mon Jul 23 19:54:31 2001 +0000
+++ b/src/video/SDL_video.c	Tue Jul 31 00:11:41 2001 +0000
@@ -1475,7 +1475,9 @@
 		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);