summaryrefslogtreecommitdiffstats
path: root/src/render/graphicshelpers/graphicshelpergl4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/graphicshelpers/graphicshelpergl4.cpp')
-rw-r--r--src/render/graphicshelpers/graphicshelpergl4.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicshelpergl4.cpp b/src/render/graphicshelpers/graphicshelpergl4.cpp
index 81a6846e0..dd2f5121c 100644
--- a/src/render/graphicshelpers/graphicshelpergl4.cpp
+++ b/src/render/graphicshelpers/graphicshelpergl4.cpp
@@ -140,6 +140,13 @@ void GraphicsHelperGL4::drawElements(GLenum primitiveType,
baseVertex);
}
+void GraphicsHelperGL4::drawElementsIndirect(GLenum mode,
+ GLenum type,
+ void *indirect)
+{
+ m_funcs->glDrawElementsIndirect(mode, type, indirect);
+}
+
void GraphicsHelperGL4::drawArrays(GLenum primitiveType,
GLint first,
GLsizei count)
@@ -149,6 +156,11 @@ void GraphicsHelperGL4::drawArrays(GLenum primitiveType,
count);
}
+void GraphicsHelperGL4::drawArraysIndirect(GLenum mode, void *indirect)
+{
+ m_funcs->glDrawArraysIndirect(mode, indirect);
+}
+
void GraphicsHelperGL4::setVerticesPerPatch(GLint verticesPerPatch)
{
m_funcs->glPatchParameteri(GL_PATCH_VERTICES, verticesPerPatch);
@@ -587,6 +599,7 @@ bool GraphicsHelperGL4::supportsFeature(GraphicsHelperInterface::Feature feature
case Compute:
case DrawBuffersBlend:
case BlitFramebuffer:
+ case IndirectDrawing:
return true;
default:
return false;