mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 00:33:34 +01:00
All: Only convert blend state if "dirty"
This commit is contained in:
1 parent
3960a4d791
commit
e4567c694c
12 files changed
+40
-23
No files matched your search
@@ -158,7 +158,8 @@ void DrawEngineGLES::ApplyDrawState(int prim) {
|
||||
|
||||
bool useBufferedRendering = g_Config.iRenderingMode != FB_NON_BUFFERED_MODE;
|
||||
|
||||
{
|
||||
if (gstate_c.IsDirty(DIRTY_BLEND_STATE)) {
|
||||
gstate_c.Clean(DIRTY_BLEND_STATE);
|
||||
gstate_c.SetAllowShaderBlend(!g_Config.bDisableSlowFramebufEffects);
|
||||
|
||||
if (gstate.isModeClear()) {
|
||||
@@ -256,7 +257,7 @@ void DrawEngineGLES::ApplyDrawState(int prim) {
|
||||
// Dither
|
||||
if (gstate.isDitherEnabled()) {
|
||||
glstate.dither.enable();
|
||||
glstate.dither.set(GL_TRUE);
|
||||
glstate.dither.set(true);
|
||||
} else {
|
||||
glstate.dither.disable();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user