From 8a69e6714e72319f3c0bee2a6cbc0ee20112657d Mon Sep 17 00:00:00 2001 From: Jesse Buhagiar Date: Tue, 11 May 2021 22:46:30 +1000 Subject: [PATCH] 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. --- Userland/Libraries/LibGL/GL/gl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;