1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Fix depth buffer render when fb emulation disabled.

This commit is contained in:
Sergey Lipskiy 2016-09-09 12:39:41 +07:00
parent 06188bddd4
commit b033cb2ecf

View File

@ -1194,6 +1194,9 @@ void OGLRender::_updateStates(RENDER_STATE _renderState) const
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
}
} else if (frameBufferList().getCurrent() == nullptr) {
glEnable(GL_BLEND);
glBlendFunc(GL_ZERO, GL_ONE);
}
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_ALWAYS);