MatrixMode sanity checks and adjustments to physics debug display (fixes a crash with that debug view, too)
This commit is contained in:
@@ -128,6 +128,7 @@ void LLDrawPoolTree::render(S32 pass)
|
||||
gGL.loadMatrix(gGLModelView);
|
||||
if (model_matrix)
|
||||
{
|
||||
llassert(gGL.getMatrixMode() == LLRender::MM_MODELVIEW);
|
||||
gGL.multMatrix((GLfloat*) model_matrix->mMatrix);
|
||||
}
|
||||
gPipeline.mMatrixOpCount++;
|
||||
|
||||
Reference in New Issue
Block a user