From 36ba9aa3f36bedc5d36eb8b6b87c429f29ffbe43 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Mon, 2 Feb 2015 22:30:41 -0800 Subject: [PATCH] Fixing rect-list tex coords. --- src/xenia/gpu/gl4/command_processor.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/xenia/gpu/gl4/command_processor.cc b/src/xenia/gpu/gl4/command_processor.cc index 3444ce3c6..9b62a3811 100644 --- a/src/xenia/gpu/gl4/command_processor.cc +++ b/src/xenia/gpu/gl4/command_processor.cc @@ -263,7 +263,10 @@ bool CommandProcessor::SetupGL() { " (gl_in[1].gl_Position + gl_in[2].gl_Position) - \n" " gl_in[0].gl_Position;\n" " gl_PointSize = gl_in[2].gl_PointSize;\n" - " out_vtx = in_vtx[2];\n" + " for (int i = 0; i < 16; ++i) {\n" + " out_vtx.o[i] = -in_vtx[0].o[i] + in_vtx[1].o[i] + \n" + " in_vtx[2].o[i];\n" + " }\n" " EmitVertex();\n" " } else {\n" // 0 ------ 1 @@ -282,7 +285,10 @@ bool CommandProcessor::SetupGL() { " gl_Position = gl_in[0].gl_Position + (gl_in[2].gl_Position - \n" " gl_in[1].gl_Position);\n" " gl_PointSize = gl_in[2].gl_PointSize;\n" - " out_vtx = in_vtx[2];\n" + " for (int i = 0; i < 16; ++i) {\n" + " out_vtx.o[i] = -in_vtx[0].o[i] + in_vtx[1].o[i] + \n" + " in_vtx[2].o[i];\n" + " }\n" " EmitVertex();\n" " gl_Position = gl_in[2].gl_Position;\n" " gl_PointSize = gl_in[2].gl_PointSize;\n"