From b95f9cf9d1fe646818322d9621b5d7eadefc2ce1 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 18 Jan 2014 16:39:07 -0800 Subject: [PATCH] softgpu: Don't call rectangles quads. GLES has quads and they work pretty differently. --- GPU/Software/Clipper.cpp | 2 +- GPU/Software/Clipper.h | 2 +- GPU/Software/TransformUnit.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GPU/Software/Clipper.cpp b/GPU/Software/Clipper.cpp index d43ef1c685..522ced9755 100644 --- a/GPU/Software/Clipper.cpp +++ b/GPU/Software/Clipper.cpp @@ -136,7 +136,7 @@ static void RotateUVThrough(VertexData &tl, VertexData &tr, VertexData &bl, Vert } } -void ProcessQuad(const VertexData& v0, const VertexData& v1) +void ProcessRect(const VertexData& v0, const VertexData& v1) { if (!gstate.isModeThrough()) { VertexData buf[4]; diff --git a/GPU/Software/Clipper.h b/GPU/Software/Clipper.h index 7c1881a50b..e0926e6248 100644 --- a/GPU/Software/Clipper.h +++ b/GPU/Software/Clipper.h @@ -24,6 +24,6 @@ namespace Clipper { void ProcessPoint(VertexData& v0); void ProcessLine(VertexData& v0, VertexData& v1); void ProcessTriangle(VertexData& v0, VertexData& v1, VertexData& v2); -void ProcessQuad(const VertexData& v0, const VertexData& v1); +void ProcessRect(const VertexData& v0, const VertexData& v1); } diff --git a/GPU/Software/TransformUnit.cpp b/GPU/Software/TransformUnit.cpp index 1a537a078a..68646bc6b9 100644 --- a/GPU/Software/TransformUnit.cpp +++ b/GPU/Software/TransformUnit.cpp @@ -352,7 +352,7 @@ void TransformUnit::SubmitPrimitive(void* vertices, void* indices, u32 prim_type } case GE_PRIM_RECTANGLES: - Clipper::ProcessQuad(data[0], data[1]); + Clipper::ProcessRect(data[0], data[1]); break; case GE_PRIM_LINES: