EMI: Always write sprites to the depth buffer.
This commit is contained in:
parent
ee24b2c12f
commit
398f2afa98
3 changed files with 7 additions and 15 deletions
|
@ -878,13 +878,7 @@ void GfxOpenGL::drawSprite(const Sprite *sprite) {
|
|||
}
|
||||
|
||||
if (g_grim->getGameType() == GType_MONKEY4) {
|
||||
if (_currentActor->isInOverworld()) {
|
||||
// The Overworld actors don't have a proper sort order
|
||||
// so we rely on the z coordinates
|
||||
glDepthMask(GL_TRUE);
|
||||
} else {
|
||||
glDepthMask(GL_FALSE);
|
||||
}
|
||||
glDepthMask(GL_TRUE);
|
||||
|
||||
float halfWidth = sprite->_width / 2;
|
||||
float halfHeight = sprite->_height / 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue