All: Only convert raster state if dirty

This commit is contained in:
Henrik Rydgard authored and Henrik Rydgård committed 2017-08-14 11:14:26 +02:00
1 parent e2b179d6e2
commit e439055a32
9 files changed
+22 -13

No files matched your search

+3 -1
View File
@@ -253,7 +253,9 @@ void DrawEngineGLES::ApplyDrawState(int prim) {
}
}
{
if (gstate_c.IsDirty(DIRTY_RASTER_STATE)) {
gstate_c.Clean(DIRTY_RASTER_STATE);
// Dither
if (gstate.isDitherEnabled()) {
glstate.dither.enable();