summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2006-03-06 16:31:50 +0000
committerIan Romanick <[email protected]>2006-03-06 16:31:50 +0000
commit66df1731e6c5563bdfbb3f960aa373f77623fbc3 (patch)
tree441ae9b2a63d5d9d2b7bc7b604cabfda32fc04fd /progs
parent5820f7998abf5c9e805263928c29af167979c20a (diff)
Don't try to bind to proxy texture target. This is defined by the spec to be
an error. Since we're working with a proxy target, don't bother using real texture data. Add a missing new-line in an error printf.
Diffstat (limited to 'progs')
-rw-r--r--progs/tests/bug_3050.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/progs/tests/bug_3050.c b/progs/tests/bug_3050.c
index 8696fcd78ba..4ea7b80f231 100644
--- a/progs/tests/bug_3050.c
+++ b/progs/tests/bug_3050.c
@@ -71,7 +71,6 @@ static void Key( unsigned char key, int x, int y )
static void Init( void )
{
- GLint temp[ 256 ];
unsigned i;
static const GLenum pnames[] = {
GL_TEXTURE_RED_SIZE,
@@ -107,10 +106,9 @@ static void Init( void )
}
- (void) memset( temp, 0x00, sizeof( temp ) );
- glBindTexture( GL_PROXY_TEXTURE_RECTANGLE_NV, 1 );
+ glBindTexture( GL_TEXTURE_RECTANGLE_NV, 1 );
glTexImage2D( GL_PROXY_TEXTURE_RECTANGLE_NV, 0, GL_RGBA, 8, 8, 0,
- GL_RGBA, GL_UNSIGNED_BYTE, temp );
+ GL_RGBA, GL_UNSIGNED_BYTE, NULL );
for ( i = 0 ; pnames[i] != ~0 ; i++ ) {
GLint param_i;
@@ -137,7 +135,7 @@ static void Init( void )
if ( err ) {
printf("glGetTexLevelParameterfv(GL_PROXY_TEXTURE_RECTANGLE_NV, 0, 0x%04x, & param) generated a GL\n"
- "error of 0x%04x!",
+ "error of 0x%04x!\n",
pnames[i], err );
exit( 1 );
}