From: Brian Paul Date: Tue, 15 Sep 2009 23:13:49 +0000 (-0600) Subject: progs/demos: use non-default texobj in cubemap.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b0fc4072f9d7fa72cbe842a2e1cabfe0d9eb3b4;p=mesa.git progs/demos: use non-default texobj in cubemap.c --- diff --git a/progs/demos/cubemap.c b/progs/demos/cubemap.c index 0df5ff09c33..015d50d86be 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(); }