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:
parent
06188bddd4
commit
b033cb2ecf
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user