mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 15:30:35 +00:00
softgpu: Fix an issue where texture coordinates were not initialized correctly for quads.
This commit is contained in:
parent
f447957263
commit
06290c53de
@ -154,6 +154,8 @@ void ProcessQuad(VertexData* data)
|
||||
VertexData newdata[6] = { data[0], data[0], data[1], data[1], data[1], data[0] };
|
||||
newdata[1].clippos.x = data[1].clippos.x;
|
||||
newdata[4].clippos.x = data[0].clippos.x;
|
||||
newdata[1].texturecoords.u() = data[1].texturecoords.u();
|
||||
newdata[4].texturecoords.u() = data[0].texturecoords.u();
|
||||
ProcessTriangle(newdata);
|
||||
ProcessTriangle(newdata+3);
|
||||
}
|
||||
@ -161,6 +163,8 @@ void ProcessQuad(VertexData* data)
|
||||
VertexData verts[6] = { data[0], data[0], data[1], data[1], data[1], data[0] };
|
||||
verts[1].drawpos.x = data[1].drawpos.x;
|
||||
verts[4].drawpos.x = data[0].drawpos.x;
|
||||
verts[1].texturecoords.s() = data[1].texturecoords.s();
|
||||
verts[4].texturecoords.s() = data[0].texturecoords.s();
|
||||
|
||||
// Color and depth values of second vertex are used for the whole rectangle
|
||||
verts[0].color0 = verts[1].color0;
|
||||
|
Loading…
Reference in New Issue
Block a user