diff options
Diffstat (limited to 'src/render/graphicshelpers/graphicshelpergl3.cpp')
-rw-r--r-- | src/render/graphicshelpers/graphicshelpergl3.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicshelpergl3.cpp b/src/render/graphicshelpers/graphicshelpergl3.cpp index f4a296c30..0f48348e4 100644 --- a/src/render/graphicshelpers/graphicshelpergl3.cpp +++ b/src/render/graphicshelpers/graphicshelpergl3.cpp @@ -896,6 +896,16 @@ void GraphicsHelperGL3::disablePrimitiveRestart() m_funcs->glDisable(GL_PRIMITIVE_RESTART); } +void GraphicsHelperGL3::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 GraphicsHelperGL3::getRenderBufferDimensions(GLuint renderBufferId) { GLint width = 0; |