GRIM: Reset OpenGLS matrix stack in startActorDraw

Fixes #1591.
This commit is contained in:
Dries Harnie 2020-05-17 10:00:15 +02:00
parent 1e1d8fbe5a
commit 8c95812106

View file

@ -731,6 +731,7 @@ void GfxOpenGLS::startActorDraw(const Actor *actor) {
Math::Matrix4 modelMatrix = quat.toMatrix();
bool hasZBuffer = g_grim->getCurrSet()->getCurrSetup()->_bkgndZBm;
Math::Matrix4 extraMatrix;
_matrixStack.top() = extraMatrix;
modelMatrix.transpose();
modelMatrix.setPosition(pos);