mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Fix rendering to only use glDrawElementsInstanced when necessary
--HG-- branch : minor
This commit is contained in:
@@ -468,7 +468,7 @@ void OpenGL::drawArrays(GLenum mode, GLint first, GLsizei count, GLsizei instanc
|
||||
|
||||
void OpenGL::drawElements(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount)
|
||||
{
|
||||
if (count > 1)
|
||||
if (instancecount > 1)
|
||||
glDrawElementsInstanced(mode, count, type, indices, instancecount);
|
||||
else
|
||||
glDrawElements(mode, count, type, indices);
|
||||
|
||||
Reference in New Issue
Block a user