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