"Invalid Value (1281)" error with glTexImage3D on

Started by indiana, June 17, 2004, 08:44:34

Previous topic - Next topic

indiana

Hi,

I have a strange error 1281 when running some code on a GeForce2MX, code thats works fine on a GeForce4 e.g.

the section the error is thrown in is

GL12.glTexImage3D(GL12.GL_TEXTURE_3D, 0, GL11.GL_RGBA, 256, 256, 8, 0, GL11.GL_RGBA, GL11.GL_UNSIGNED_BYTE, textureBuffer);


textureBuffer is a direct byte buffer of the correct size containing the texture data. the texture ID is bound etc... everything seems to be ok...

as mentioned, the code works fine on other machines. i use newest drivers on the GeForce2MX machine, and all other lwjgl code also works. i simply cant get 3d textures to work it seems .....   :cry:

any ideas on this ?

cfmdobbie

I think you'll find that the GeForce 2MX can't handle 3D textures over 64x64x64 in size.  Try querying MAX_3D_TEXTURE_SIZE and see what it gives you.
ellomynameis Charlie Dobbie.

indiana

There is a MAX_3D_TEXTURE_SIZE ?!

Damn i thought MAX_TEXTURE_SIZE is sufficient to query for 3d textures ...

Thanks for the proposal, I'll try it !