comparison 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
comparison
equal deleted inserted replaced
124:bb051fa871aa 125:0ae324925dd7
1473 if (lock_count==-1) 1473 if (lock_count==-1)
1474 { 1474 {
1475 SDL_VideoDevice *this = current_video; 1475 SDL_VideoDevice *this = current_video;
1476 1476
1477 this->glPushAttrib( GL_ALL_ATTRIB_BITS ); /* TODO: narrow range of what is saved */ 1477 this->glPushAttrib( GL_ALL_ATTRIB_BITS ); /* TODO: narrow range of what is saved */
1478 #ifdef GL_CLIENT_PIXEL_STORE_BIT
1478 this->glPushClientAttrib( GL_CLIENT_PIXEL_STORE_BIT ); 1479 this->glPushClientAttrib( GL_CLIENT_PIXEL_STORE_BIT );
1480 #endif
1479 1481
1480 this->glEnable(GL_TEXTURE_2D); 1482 this->glEnable(GL_TEXTURE_2D);
1481 this->glEnable(GL_BLEND); 1483 this->glEnable(GL_BLEND);
1482 this->glDisable(GL_FOG); 1484 this->glDisable(GL_FOG);
1483 this->glDisable(GL_ALPHA_TEST); 1485 this->glDisable(GL_ALPHA_TEST);