(GLint*) casts in glGetIntegerv calls
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 26 Nov 2004 13:43:17 +0000 (13:43 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 26 Nov 2004 13:43:17 +0000 (13:43 +0000)
progs/demos/readpix.c

index fc322f2e81124a09bef870fd09f489aa2c26c6f7..b36e3d1e643e997a11e2d8abf666228d07e230dd 100644 (file)
@@ -238,8 +238,8 @@ Init( GLboolean ciMode )
 
 #ifdef GL_OES_read_format
    if ( glutExtensionSupported( "GL_OES_read_format" ) ) {
-      glGetIntegerv( GL_IMPLEMENTATION_COLOR_READ_TYPE_OES,   & ReadType );
-      glGetIntegerv( GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES, & ReadFormat );
+      glGetIntegerv(GL_IMPLEMENTATION_COLOR_READ_TYPE_OES,   (GLint *) &ReadType);
+      glGetIntegerv(GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES, (GLint *) &ReadFormat);
 
       have_read_format = GL_TRUE;
    }