mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Additional cleanup
This commit is contained in:
1 parent
ceda7aef49
commit
ec173559f8
6 files changed
+54
-10
No files matched your search
@@ -146,6 +146,7 @@ void DrawEngineGLES::ApplyDrawState(int prim) {
|
||||
pipelineState_.Convert(draw_->GetDeviceCaps().fragmentShaderInt32Supported);
|
||||
GenericMaskState &maskState = pipelineState_.maskState;
|
||||
GenericBlendState &blendState = pipelineState_.blendState;
|
||||
GenericLogicState &logicState = pipelineState_.logicState;
|
||||
|
||||
if (blendState.applyFramebufferRead || maskState.applyFramebufferRead) {
|
||||
bool fboTexNeedsBind = false;
|
||||
@@ -201,10 +202,11 @@ void DrawEngineGLES::ApplyDrawState(int prim) {
|
||||
} else {
|
||||
renderManager->SetNoBlendAndMask(mask);
|
||||
}
|
||||
|
||||
// TODO: Get rid of the ifdef
|
||||
#ifndef USING_GLES2
|
||||
if (gstate_c.Supports(GPU_SUPPORTS_LOGIC_OP)) {
|
||||
renderManager->SetLogicOp(gstate.isLogicOpEnabled() && gstate.getLogicOp() != GE_LOGIC_COPY,
|
||||
logicOps[gstate.getLogicOp()]);
|
||||
renderManager->SetLogicOp(logicState.logicOpEnabled, logicOps[(int)logicState.logicOp]);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user