Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 33a0423

Browse files
committed
PR
1 parent 741c563 commit 33a0423

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

impeller/toolkit/glvk/trampoline.cc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,10 @@ bool Trampoline::BlitTextureOpenGLToVulkan(
251251
};
252252

253253
static constexpr const VertexData kVertData[] = {
254-
{Point{-1, -1}, Point{0, 0}}, //
255-
{Point{-1, +1}, Point{0, 1}}, //
256-
{Point{+1, +1}, Point{1, 1}}, //
257-
{Point{+1, +1}, Point{1, 1}}, //
258-
{Point{+1, -1}, Point{1, 0}}, //
259-
{Point{-1, -1}, Point{0, 0}}, //
254+
{Point{-1, -1}, Point{0, 0}}, // bottom left
255+
{Point{-1, +1}, Point{0, 1}}, // top left
256+
{Point{+1, +1}, Point{1, 1}}, // top right
257+
{Point{+1, -1}, Point{1, 0}}, // bottom right
260258
};
261259

262260
// This is tedious but we assume no vertex array objects (VAO) are available
@@ -283,7 +281,7 @@ bool Trampoline::BlitTextureOpenGLToVulkan(
283281
gl.UniformMatrix4fv(st_transformation_location_, 1u, GL_FALSE,
284282
reinterpret_cast<GLfloat*>(&gl_st_transformation));
285283

286-
gl.DrawArrays(GL_TRIANGLES, 0, 6);
284+
gl.DrawArrays(GL_TRIANGLE_FAN, 0, 4);
287285

288286
gl.UseProgram(GL_NONE);
289287

0 commit comments

Comments
 (0)