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.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicshelpergl4.cpp b/src/render/graphicshelpers/graphicshelpergl4.cpp
index fa95bfc8f..dfd09cafd 100644
--- a/src/render/graphicshelpers/graphicshelpergl4.cpp
+++ b/src/render/graphicshelpers/graphicshelpergl4.cpp
@@ -880,6 +880,16 @@ void GraphicsHelperGL4::disablePrimitiveRestart()
m_funcs->glDisable(GL_PRIMITIVE_RESTART);
}
+void GraphicsHelperGL4::pointSize(bool programmable, GLfloat value)
+{
+ if (programmable) {
+ m_funcs->glEnable(GL_PROGRAM_POINT_SIZE);
+ } else {
+ m_funcs->glDisable(GL_PROGRAM_POINT_SIZE);
+ m_funcs->glPointSize(value);
+ }
+}
+
QSize GraphicsHelperGL4::getRenderBufferDimensions(GLuint renderBufferId)
{
GLint width = 0;