diff options
Diffstat (limited to 'src/render/graphicshelpers/graphicshelperes2.cpp')
-rw-r--r-- | src/render/graphicshelpers/graphicshelperes2.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicshelperes2.cpp b/src/render/graphicshelpers/graphicshelperes2.cpp index 28ea181b6..4b84bfbad 100644 --- a/src/render/graphicshelpers/graphicshelperes2.cpp +++ b/src/render/graphicshelpers/graphicshelperes2.cpp @@ -115,6 +115,16 @@ void GraphicsHelperES2::drawArraysInstanced(GLenum primitiveType, count); } +void GraphicsHelperES2::drawArraysInstancedBaseInstance(GLenum primitiveType, GLint first, GLsizei count, GLsizei instances, GLsizei baseInstance) +{ + if (baseInstance != 0) + qWarning() << "glDrawArraysInstancedBaseInstance is not supported with OpenGL ES 2"; + for (GLint i = 0; i < instances; i++) + drawArrays(primitiveType, + first, + count); +} + void GraphicsHelperES2::drawElements(GLenum primitiveType, GLsizei primitiveCount, GLint indexType, |