PDA

View Full Version : glGetFloatv(GL_TEXTURE_MATRIX, matrix) not working



soconne
03-04-2011, 02:10 PM
Can't figure out why this is happening, but glGetFloatv(GL_TEXTURE_MATRIX, matrix) is not filling in the matrix array. The values remain at whatever they were initialized to. I've installed the latest Nvidia driver 266.58 and the issue persists. Calling glGetDoublev doesn't work either. Anybody having this problem?

_arts_
03-04-2011, 02:20 PM
Strange.

Did you tried your code with older drivers ? on other machines ? With a simple little program ?

mhagain
03-04-2011, 04:21 PM
That's really odd. I just did a simple test case and it worked fine.

Might be a silly question, but you do have the same glActiveTexture when you're getting the matrix as you had when you set up the original transform? It's the only thing (outside of a driver bug) I can think of.