mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
progs/demos: use non-default texobj in cubemap.c
This commit is contained in:
parent
7f86da6c60
commit
0b0fc4072f
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue