summaryrefslogtreecommitdiffstats
path: root/src/render/graphicshelpers/graphicshelpergl2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/graphicshelpers/graphicshelpergl2.cpp')
-rw-r--r--src/render/graphicshelpers/graphicshelpergl2.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicshelpergl2.cpp b/src/render/graphicshelpers/graphicshelpergl2.cpp
index 972d93ffe..c21a6eeba 100644
--- a/src/render/graphicshelpers/graphicshelpergl2.cpp
+++ b/src/render/graphicshelpers/graphicshelpergl2.cpp
@@ -540,6 +540,19 @@ void GraphicsHelperGL2::disablePrimitiveRestart()
{
}
+void GraphicsHelperGL2::pointSize(bool programmable, GLfloat value)
+{
+ // Print a warning once for trying to set GL_PROGRAM_POINT_SIZE
+ if (programmable) {
+ static bool warned = false;
+ if (!warned) {
+ qWarning() << "GL_PROGRAM_POINT_SIZE is not supported by OpenGL 2.0 (since 3.2)";
+ warned = true;
+ }
+ }
+ m_funcs->glPointSize(value);
+}
+
QSize GraphicsHelperGL2::getRenderBufferDimensions(GLuint renderBufferId)
{
Q_UNUSED(renderBufferId);