mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 11:24:27 +01:00
softgpu: Disable texturing in clear mode.
This commit is contained in:
1 parent
00b7fbd19e
commit
b33646cced
2 files changed
+2
-1
No files matched your search
@@ -178,7 +178,7 @@ void DrawTriangle(VertexData vertexdata[3])
|
||||
color = vertexdata[2].color0.r() | (vertexdata[2].color0.g()<<8) | (vertexdata[2].color0.b()<<16) | (vertexdata[2].color0.a()<<24);
|
||||
|
||||
// TODO: Also disable if vertex has no texture coordinates?
|
||||
if (gstate.isTextureMapEnabled())
|
||||
if (gstate.isTextureMapEnabled() && !gstate.isModeClear())
|
||||
color |= /*TextureDecoder::*/SampleNearest(0, s, t);
|
||||
|
||||
*(u32*)&fb[p.x*4+p.y*(gstate.fbwidth&0x7C0)*4] = color;
|
||||
|
||||
@@ -251,6 +251,7 @@ void SoftGPU::ExecuteOp(u32 op, u32 diff)
|
||||
"TRIANGLE_FAN=5,",
|
||||
"RECTANGLES=6,",
|
||||
};
|
||||
|
||||
if (type != GE_PRIM_TRIANGLES && type != GE_PRIM_RECTANGLES)
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user