softgpu: Disable texturing in clear mode.

This commit is contained in:
Tony Wasserka 2013-06-29 17:22:26 +02:00 committed by neobrain
parent 00b7fbd19e
commit b33646cced
2 changed files with 2 additions and 1 deletions

View file

@ -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;