Horde3D

Next-Generation Graphics Engine
It is currently 28.03.2024, 10:42

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 05.04.2011, 05:27 
Offline

Joined: 12.10.2010, 10:42
Posts: 5
I was working off r312 and noticed some assertions getting thrown when I had a certain number of shaders. I had a peek at the source, and it looked a bit suspicious where it was being removed from _buffers:
Code:
void RenderDevice::destroyShader( uint32 shaderId )
{
   if( shaderId == 0 ) return;

   RDIShader &shader = _shaders.getRef( shaderId );
   glDeleteProgram( shader.oglProgramObj );
   _buffers.remove( shaderId );                            //  throws assertion here, should be _shaders.remove(shaderId); ?
}


Top
 Profile  
Reply with quote  
PostPosted: 09.04.2011, 19:49 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
This was a bug indeed, should be fixed now. Thanks for the report!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group