Skip to content

Commit 52471d7

Browse files
author
dandistine
committed
Fix coordinate indices in non-depth gputasks
1 parent e336eac commit 52471d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

olcPixelGameEngine.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5613,8 +5613,8 @@ namespace olc
56135613
{
56145614
olc::Pixel p = task.vb[n].c;
56155615
glColor4ub(GLubyte(p.r * f[0]), GLubyte(p.g * f[1]), GLubyte(p.b * f[2]), GLubyte(p.a * f[3]));
5616-
glVertex4f(task.vb[n].p[4], task.vb[n].p[5], 0.0f, task.vb[n].p[3]);
5617-
glTexCoord2f(task.vb[n].p[0], task.vb[n].p[1]);
5616+
glTexCoord2f(task.vb[n].p[4], task.vb[n].p[5]);
5617+
glVertex4f(task.vb[n].p[0], task.vb[n].p[1], 0.0f, task.vb[n].p[3]);
56185618
}
56195619
}
56205620

0 commit comments

Comments
 (0)