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 0df5ff0..015d50d 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();
    }