Hello Guest

"Invalid Value (1281)" error with glTexImage3D on

  • 2 Replies
  • 6310 Views
"Invalid Value (1281)" error with glTexImage3D on
« on: June 17, 2004, 08:44:34 »
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

Code: [Select]
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 ?

"Invalid Value (1281)" error with glTexImage3D on
« Reply #1 on: June 17, 2004, 17:07:01 »
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.

"Invalid Value (1281)" error with glTexImage3D on
« Reply #2 on: June 17, 2004, 17:23:10 »
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 !