Login  Register

Re: Texture Issue Again :(

Posted by Michael Bien on Mar 13, 2011; 6:07pm
URL: https://forum.jogamp.org/Texture-Issue-Again-tp2646111p2673394.html

hello,

is your texture data buffer a direct nio buffer or is it allocated on heap?

i recommend using Buffers.newFooBuffer() for buffer allocation whenever possible, since you are dealing with large buffers you may want to increase perm gen in case it wouldn't fit if direct allocated (-XX:MaxPermSize=)

if you already using direct nio buffers... please report back.

best regards,

michael


On 03/13/2011 06:01 PM, Haroogan [via jogamp] wrote:
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException:
Thread[AWT-EventQueue-0,6,main] glGetError() returned the following error
codes after a call to glTexImage2D( 0xDE1,  0x0,  0x1908,  0x1001,  0x1001, 
0x0,  0x1908,  0x1401, ): GL_OUT_OF_MEMORY ( 1285 0x505)


Just was trying to glTexImage2D 2 4097x4097 textures. The first one was
uploaded to GPU successfully, but the 2nd one throws above exception. This
means I can never have 2 textures of that size on GPU. Moreover, somehow
8193x8193 - is loaded to GPU without any problems - but it's size is 2 times
more than 2 textures of 4097x4097 are. This proves that I have enough memory
(but I think we don't really need to prove it with Radeon HD 5870? :)).

Guys you really have to fix it, I can't work like that :)

_______________________________________________
If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/Texture-Issue-Again-tp2646111p2673148.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, visit 

-- 
http://michael-bien.com/