Horde3D
http://horde3d.org/forums/

Assertion thrown in RenderDevice::destroyShader()
http://horde3d.org/forums/viewtopic.php?f=3&t=1484
Page 1 of 1

Author:  tollund7 [ 05.04.2011, 05:27 ]
Post subject:  Assertion thrown in RenderDevice::destroyShader()

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); ?
}

Author:  Volker [ 09.04.2011, 19:49 ]
Post subject:  Re: Assertion thrown in RenderDevice::destroyShader()

This was a bug indeed, should be fixed now. Thanks for the report!

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/