I tried running the following bit of code but I keep getting the result:
“Texture Width = 0”
GLint Max_Size;
…
glTexImage2D(GL_PROXY_TEXTURE_2D, 0, GL_RGB, 255, 255, 1, GL_RGB, GL_BYTE, NULL);
glGetTexLevelParameteriv(GL_PROXY_TEXTURE_2D, 0, GL_TEXTURE_WIDTH, &Max_Size);
printf("Texture Width = %d
", Max_Size);
… which is rather strange cos I have an NVIDIA GeForce 3 Ti200!!! Besides I tried
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &Max_Size);
printf("The Maximum texture size is %d pixels
", Max_Size);
and I got:
“The Maximum texture size is 4096 pixels”
Ok, so what am I doing wrong? …