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

Make N64DepthCompare setting independent off enableFragmentDepthWrite one.

This commit is contained in:
Sergey Lipskiy 2017-02-17 17:14:45 +07:00
parent 151fdf5ecc
commit c33d8555b2
2 changed files with 4 additions and 2 deletions

View File

@ -1245,7 +1245,8 @@ public:
ShaderWriteDepth(const opengl::GLInfo & _glinfo)
{
if (!_glinfo.isGLES2) {
if (config.generalEmulation.enableFragmentDepthWrite == 0) {
if (config.generalEmulation.enableFragmentDepthWrite == 0 &&
config.frameBufferEmulation.N64DepthCompare == 0) {
// Dummy write depth
m_part =
"void writeDepth() \n"

View File

@ -823,7 +823,8 @@ void CombinerProgramUniformFactory::buildUniforms(GLuint _program,
if (config.frameBufferEmulation.N64DepthCompare != 0)
_uniforms.emplace_back(new UDepthInfo(_program));
if (config.generalEmulation.enableFragmentDepthWrite != 0)
if (config.generalEmulation.enableFragmentDepthWrite != 0 ||
config.frameBufferEmulation.N64DepthCompare != 0)
_uniforms.emplace_back(new URenderTarget(_program));
_uniforms.emplace_back(new UScreenCoordsScale(_program));