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

Correct dither condition.

This commit is contained in:
Sergey Lipskiy 2013-05-19 10:45:32 +07:00
parent b6b80d720f
commit c7e089bcaf

View File

@ -805,7 +805,7 @@ void GLSLCombiner::UpdateColors() {
}
}
int nDither = (gDP.otherMode.colorDither == 2 || gDP.otherMode.alphaDither == 2 || gDP.otherMode.alphaCompare == 3) ? 1 : 0;
int nDither = (gDP.otherMode.alphaCompare == 3 && (gDP.otherMode.colorDither == 2 || gDP.otherMode.alphaDither == 2)) ? 1 : 0;
int dither_location = glGetUniformLocationARB(m_programObject, "dither_enabled");
glUniform1iARB(dither_location, nDither);