changeset 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 bb051fa871aa
children 92cbc667a9ff
files src/video/SDL_video.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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);