progs/demos: use non-default texobj in cubemap.c
authorBrian Paul <brianp@vmware.com>
Tue, 15 Sep 2009 23:13:49 +0000 (17:13 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 16 Sep 2009 00:17:42 +0000 (18:17 -0600)
progs/demos/cubemap.c

index 0df5ff09c33acc3276addde7e382e699194bfa4e..015d50d86bea16f71e2d60ec8e76dab0a501b932 100644 (file)
@@ -58,6 +58,7 @@ static GLint ClampIndex = 0;
 static GLboolean supportFBO = GL_FALSE;
 static GLboolean supportSeamless = GL_FALSE;
 static GLboolean seamless = GL_FALSE;
+static GLuint TexObj = 0;
 
 
 static struct {
@@ -543,6 +544,10 @@ static void init( GLboolean useImageFiles )
 
    printf("GL_RENDERER: %s\n", (char *) glGetString(GL_RENDERER));
 
+
+   glGenTextures(1, &TexObj);
+   glBindTexture(GL_TEXTURE_CUBE_MAP_ARB, TexObj);
+
    if (useImageFiles) {
       load_envmaps();
    }