diff options
author | Brian Paul <brianp@vmware.com> | 2009-09-15 17:13:49 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-09-15 18:17:42 -0600 |
commit | 0b0fc4072f9d7fa72cbe842a2e1cabfe0d9eb3b4 (patch) | |
tree | 9234fb30482b8ac6fe531aafbcf3c4820b7a1dec /progs | |
parent | 7f86da6c609191dbad1887fe5683dfee087fa909 (diff) |
progs/demos: use non-default texobj in cubemap.c
Diffstat (limited to 'progs')
-rw-r--r-- | progs/demos/cubemap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/demos/cubemap.c b/progs/demos/cubemap.c index 0df5ff09c3..015d50d86b 100644 --- a/progs/demos/cubemap.c +++ b/progs/demos/cubemap.c @@ -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(); } |