Joined: 11.09.2010, 20:21 Posts: 44 Location: Germany
|
I just skimmed over the newest revision 551 with the new renderer abstraction and I think I spotted a bug. in Renderer::drawMeshes you call the new method RenderDeviceInterface::drawIndexed. This expects a "numVerts" argument which is also treated so (and thus added to the base vertex in glDrawRangeElements), but you call this function with the mesh's "vertREnd" property (instead the right "vertREnd-vertRStart+1").
The samples work correctly because the end vertex in glDrawRangeElements is just a hint (as long as it's too large) and it maybe no performance cost, but it is just the wrong usage.
|
|