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:
parent
151fdf5ecc
commit
c33d8555b2
|
@ -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"
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue
Block a user