summaryrefslogtreecommitdiffstats
path: root/src/render/graphicshelpers/graphicshelperes2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/graphicshelpers/graphicshelperes2.cpp')
-rw-r--r--src/render/graphicshelpers/graphicshelperes2.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicshelperes2.cpp b/src/render/graphicshelpers/graphicshelperes2.cpp
index 8d1df2253..2072df3f4 100644
--- a/src/render/graphicshelpers/graphicshelperes2.cpp
+++ b/src/render/graphicshelpers/graphicshelperes2.cpp
@@ -542,6 +542,18 @@ void GraphicsHelperES2::disablePrimitiveRestart()
{
}
+void GraphicsHelperES2::pointSize(bool programmable, GLfloat value)
+{
+ // If this is not a reset to default values, print a warning
+ if (programmable || !qFuzzyCompare(value, 1.0f)) {
+ static bool warned = false;
+ if (!warned) {
+ qWarning() << "glPointSize() and GL_PROGRAM_POINT_SIZE are not supported by ES 2.0";
+ warned = true;
+ }
+ }
+}
+
QSize GraphicsHelperES2::getRenderBufferDimensions(GLuint renderBufferId)
{
GLint width = 0;