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