Add enable/disable dithering. Respect chosen framebuffer color depth.

This commit is contained in:
Henrik Rydgard committed 2013-01-23 23:04:09 +01:00
1 parent cb7f803866
commit b1bbbc44fc
4 files changed
+21 -3

No files matched your search

+3
View File
@@ -202,6 +202,9 @@ void ApplyDrawState(int prim) {
glstate.stencilTest.disable();
}
// Dither
glstate.dither.set(gstate.ditherEnable & 1);
bool wantDepthWrite = gstate.isModeClear() || gstate.isDepthWriteEnabled();
glstate.depthWrite.set(wantDepthWrite ? GL_TRUE : GL_FALSE);