Jump to content

View more

Image of the Day

The beast has a mighty searchlight of evil! #screenshotsaturday https://t.co/bzKepOojDL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

glClearBuffer on GL_TEXTURE_2D_ARRAY

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 BornToCode   Members   

1185
Like
0Likes
Like

Posted 03 November 2013 - 08:55 PM

Ok i have noticed the weirdest thing ever. When i use a GL_TEXTURE_2D in my glFramebufferTexture2D and call glClearBufferiv it works fine. But when i change it to GL_TEXTURE_2D_ARRAY and use glFramebufferTexture3D and assign the texture index i want to assign glClearBufferfv throws Invalid frame buffer operation which is not part of the error list on the kronos opengl 4.0 spec sheet. So i am wondering if anyone ever had any problem setting an Texture array index and call glClearBuffer with it.



#2 BornToCode   Members   

1185
Like
0Likes
Like

Posted 03 November 2013 - 09:30 PM

I solved it.






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.