mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
Special case for GL_ZERO blend factor too. Don't log on "sync".
This commit is contained in:
1 parent
2f39496ec5
commit
c0075d8322
2 files changed
+11
-5
No files matched your search
@@ -152,7 +152,7 @@ namespace MIPSInt
|
||||
|
||||
void Int_Sync(u32 op)
|
||||
{
|
||||
DEBUG_LOG(CPU, "sync");
|
||||
//DEBUG_LOG(CPU, "sync");
|
||||
PC += 4;
|
||||
}
|
||||
|
||||
|
||||
@@ -572,11 +572,17 @@ void TransformAndDrawPrim(void *verts, void *inds, int prim, int vertexCount, Li
|
||||
u32 fixA = gstate.getFixA();
|
||||
u32 fixB = gstate.getFixB();
|
||||
// Shortcut by using GL_ONE where possible, no need to set blendcolor
|
||||
if (!glBlendFuncA && blendFuncA == GE_SRCBLEND_FIXA && fixA == 0xFFFFFF) {
|
||||
glBlendFuncA = GL_ONE;
|
||||
if (!glBlendFuncA && blendFuncA == GE_SRCBLEND_FIXA) {
|
||||
if (fixA == 0xFFFFFF)
|
||||
glBlendFuncA = GL_ONE;
|
||||
else if (fixA == 0)
|
||||
glBlendFuncA = GL_ZERO;
|
||||
}
|
||||
if (!glBlendFuncB && blendFuncB == GE_DSTBLEND_FIXB && fixB == 0xFFFFFF) {
|
||||
glBlendFuncB = GL_ONE;
|
||||
if (!glBlendFuncB && blendFuncB == GE_DSTBLEND_FIXB) {
|
||||
if (fixB == 0xFFFFFF)
|
||||
glBlendFuncB = GL_ONE;
|
||||
else if (fixB == 0)
|
||||
glBlendFuncB = GL_ZERO;
|
||||
}
|
||||
if (!glBlendFuncA && glBlendFuncB) {
|
||||
// Can use blendcolor trivially.
|
||||
|
||||
Reference in new issue
Block a user