mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Images and Canvases are now drawn using GL_TRIANGLE_FAN instead of GL_QUADS, for future compatibility with GLES and core GL3+.
--HG-- branch : minor
This commit is contained in:
@@ -625,7 +625,7 @@ void Canvas::drawv(const Matrix &t, const Vertex *v)
|
||||
glVertexAttribPointer(ATTRIB_TEXCOORD, 2, GL_FLOAT, GL_FALSE, sizeof(Vertex), &v[0].s);
|
||||
|
||||
gl.prepareDraw();
|
||||
gl.drawArrays(GL_QUADS, 0, 4);
|
||||
gl.drawArrays(GL_TRIANGLE_FAN, 0, 4);
|
||||
|
||||
glDisableVertexAttribArray(ATTRIB_TEXCOORD);
|
||||
glDisableVertexAttribArray(ATTRIB_POS);
|
||||
|
||||
Reference in New Issue
Block a user