summaryrefslogtreecommitdiffstats
path: root/src/render/graphicshelpers/graphicscontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/graphicshelpers/graphicscontext.cpp')
-rw-r--r--src/render/graphicshelpers/graphicscontext.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicscontext.cpp b/src/render/graphicshelpers/graphicscontext.cpp
index 4a9d16e89..f7ba5c3c4 100644
--- a/src/render/graphicshelpers/graphicscontext.cpp
+++ b/src/render/graphicshelpers/graphicscontext.cpp
@@ -858,6 +858,13 @@ void GraphicsContext::drawElements(GLenum primitiveType,
baseVertex);
}
+void GraphicsContext::drawElementsIndirect(GLenum mode,
+ GLenum type,
+ void *indirect)
+{
+ m_glHelper->drawElementsIndirect(mode, type, indirect);
+}
+
/*!
* Wraps an OpenGL call to glDrawArrays.
*/
@@ -870,6 +877,11 @@ void GraphicsContext::drawArrays(GLenum primitiveType,
count);
}
+void GraphicsContext::drawArraysIndirect(GLenum mode, void *indirect)
+{
+ m_glHelper->drawArraysIndirect(mode, indirect);
+}
+
void GraphicsContext::setVerticesPerPatch(GLint verticesPerPatch)
{
m_glHelper->setVerticesPerPatch(verticesPerPatch);