Is glGetTexLevelParameteriv() supported by MiniGL?
Posted: Wed Jan 10, 2018 11:58 pm
I'm trying to get some info from a texture:
But I'm getting these weird return values:
The code works fine on Windows/Linux/MacOS and but on MiniGL I get these strange values. Is this a bug in MiniGL?
Code: Select all
int texwidth = 0, texheight = 0, fmt = 0;
glBindTexture(textureTarget, id);
glGetTexLevelParameteriv(textureTarget, 0, GL_TEXTURE_COMPONENTS, &fmt);
glGetTexLevelParameteriv(textureTarget, 0, GL_TEXTURE_WIDTH, &texwidth);
glGetTexLevelParameteriv(textureTarget, 0, GL_TEXTURE_HEIGHT, &texheight);
Code: Select all
fmt: 0x47005800
texwidth: 0x44800000
texheight: 0x43000000