diff options
Diffstat (limited to 'sources/pyside6/PySide6/QtOpenGL/glue/utils.cpp')
| -rw-r--r-- | sources/pyside6/PySide6/QtOpenGL/glue/utils.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/QtOpenGL/glue/utils.cpp b/sources/pyside6/PySide6/QtOpenGL/glue/utils.cpp index 49d66e3a6..3e7c324ba 100644 --- a/sources/pyside6/PySide6/QtOpenGL/glue/utils.cpp +++ b/sources/pyside6/PySide6/QtOpenGL/glue/utils.cpp @@ -28,3 +28,11 @@ int glGetVReturnSize(GLenum pname) } return 1; } + +// Return the number of return values of the indexed +// glGetBoolean/Double/Integeri_v functions +// cf https://registry.khronos.org/OpenGL-Refpages/gl4/html/glGet.xhtml +int glGetI_VReturnSize(GLenum pname) +{ + return pname == GL_VIEWPORT ? 4 : 1; +} |
