projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f86da6
)
progs/demos: use non-default texobj in cubemap.c
author
Brian Paul
<brianp@vmware.com>
Tue, 15 Sep 2009 23:13:49 +0000
(17:13 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 16 Sep 2009 00:17:42 +0000
(18:17 -0600)
progs/demos/cubemap.c
patch
|
blob
|
history
diff --git
a/progs/demos/cubemap.c
b/progs/demos/cubemap.c
index 0df5ff09c33acc3276addde7e382e699194bfa4e..015d50d86bea16f71e2d60ec8e76dab0a501b932 100644
(file)
--- 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();
}