diff src/video/SDL_video.c @ 125:0ae324925dd7

Fix build when GL_CLIENT_PIXEL_STORE_BIT is not defined
author Sam Lantinga <slouken@libsdl.org>
date Tue, 31 Jul 2001 00:11:41 +0000
parents b0ae59d0f3ee
children cb384ef627f6
line wrap: on
line diff
--- 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);