From 91c32cb173201ac8803a1e4452e8342969b8e484 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 29 Oct 2021 13:36:49 +0800 Subject: *GLSL test --- Runtime/Graphics/UIQuad.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Runtime/Graphics/UIQuad.cpp') diff --git a/Runtime/Graphics/UIQuad.cpp b/Runtime/Graphics/UIQuad.cpp index fb5964f..73cf645 100644 --- a/Runtime/Graphics/UIQuad.cpp +++ b/Runtime/Graphics/UIQuad.cpp @@ -49,7 +49,7 @@ void UIQuad::Draw() for (int i = 0; i < nVerts; ++i) { - dst[i].position.Set(pos[3 * i], pos[3 * i + 1]); + dst[i].position.Set(pos[2 * i], pos[2 * i + 1]); dst[i].uv.Set(uv[2 * i], uv[2 * i + 1]); } -- cgit v1.1-26-g67d0