// panels). This is a memory leak and should be fixed!`
_panel->init();
+ _panel->setDepthTest( props->getBoolValue("depth-test") );
+
// Initialize the matrices to the identity. PLib prints warnings
// when trying to invert singular matrices (e.g. when not using a
// 3D panel).
glGetFloatv(GL_PROJECTION_MATRIX, _lastProjection);
glGetIntegerv(GL_VIEWPORT, _lastViewport);
- glDepthMask( GL_FALSE );
-
_panel->draw();
- glDepthMask( GL_TRUE );
-
glPopMatrix();
}