aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/glue/qtgui.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-09-19 15:04:37 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-09-20 11:42:31 +0000
commit55d3c8da3ea6c2abc2e6218ed150750127bcff0e (patch)
tree2905dbf448f47a86dce1c9a6a76c5335b708ca01 /sources/pyside6/PySide6/glue/qtgui.cpp
parent1aeb58db3d0ee70946572ead7f0cf75537f87b78 (diff)
Fix compiling with OpenGL ES
Add some #ifdefs for GL only constants. Amends 39821c9265ca15373725e408b5ede19794b9e419. Task-number: PYSIDE-2013 Fixes: PYSIDE-2060 Change-Id: I8cd5e0d297db18de094ade3acbb61dfa39aa0f4c Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/glue/qtgui.cpp')
-rw-r--r--sources/pyside6/PySide6/glue/qtgui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/glue/qtgui.cpp b/sources/pyside6/PySide6/glue/qtgui.cpp
index 95c0ff025..d610933ba 100644
--- a/sources/pyside6/PySide6/glue/qtgui.cpp
+++ b/sources/pyside6/PySide6/glue/qtgui.cpp
@@ -119,9 +119,11 @@ static int glGetVReturnSize(GLenum pname)
case GL_ALIASED_LINE_WIDTH_RANGE:
case GL_DEPTH_RANGE:
case GL_MAX_VIEWPORT_DIMS:
+#if !QT_CONFIG(opengles2)
case GL_POINT_SIZE_RANGE:
case GL_SMOOTH_LINE_WIDTH_RANGE:
case GL_VIEWPORT_BOUNDS_RANGE:
+#endif
return 2;
case GL_BLEND_COLOR:
case GL_COLOR_CLEAR_VALUE: