Closed GoogleCodeExporter closed 9 years ago
I think I found the bug: in IndexBuffer::InitDescription() m_Description does
not get
assigned.
void IndexBuffer::InitDescription()
{
IndexBufferDescription desc;
HRESULT hr = InternalPointer->GetDesc( reinterpret_cast<D3DINDEXBUFFER_DESC*>( &desc
) );
RECORD_D3D9( hr );
// ADD THE FOLLOWING LINE
m_Description = desc;
if( m_Description.Pool == Pool::Default )
this->IsDefaultPool = true;
}
Original comment by m...@andreloker.de
on 8 Aug 2008 at 12:13
While we're here, should we switch index buffer over so that it's no longer
caching
this stuff? iirc, it's the only buffer interface left that does.
Original comment by josh.petrie
on 8 Aug 2008 at 3:33
Fixed both IndexBuffer and VertexBuffer so that they don't cache the
description anymore.
Original comment by Mike.Popoloski
on 8 Aug 2008 at 4:08
Original issue reported on code.google.com by
Mike.Popoloski
on 7 Aug 2008 at 12:55