diff options
author | Jesse Buhagiar <jooster669@gmail.com> | 2021-05-11 22:46:30 +1000 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-05-26 16:36:53 +0430 |
commit | 8a69e6714e72319f3c0bee2a6cbc0ee20112657d (patch) | |
tree | 0138e72b31ad812facc74b60598061909908c487 /Userland/Libraries | |
parent | 2b123cc59259fb6487f2e96ef89d66dd0759b7d6 (diff) | |
download | serenity-8a69e6714e72319f3c0bee2a6cbc0ee20112657d.zip |
LibGL: Change GLsizei from unsigned to signed integral type
There is some really wild stuff going on in the OpenGL spec for this..
The Khronos website states that GLsizei is a 32-bit non-negative value
used for sizes, however, some functions such as `glGenTextures` state
that the input `n` could be negative, which implies signage. Most other
implementations of `gl.h` seem to `typedef` this to `int` so we should
too.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibGL/GL/gl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h index 85725e866b..03637e41c3 100644 --- a/Userland/Libraries/LibGL/GL/gl.h +++ b/Userland/Libraries/LibGL/GL/gl.h @@ -163,7 +163,7 @@ typedef unsigned int GLuint; typedef int GLfixed; typedef long long GLint64; typedef unsigned long long GLuint64; -typedef unsigned long GLsizei; +typedef int GLsizei; typedef void GLvoid; typedef float GLfloat; typedef float GLclampf; |