From aa165488caf2ff5a9d578dd6a6f2e2d09b1e5481 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 1 Feb 2015 11:50:29 -0500 Subject: [PATCH] (Glitch64) OpenGL state machine stores GPU format as GLint, not GLenum. Although the unsigned type `GLenum` seem like the logical choice of type for this function argument, OpenGL internal format macros are enumarations of the signed `GLint` type when storing to the GL state machine for commands sent to the GPU, rather than unsigned enumerations. This also fixes a signedness warning in one of the conversions. --- Source/Glitch64/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Glitch64/main.cpp b/Source/Glitch64/main.cpp index 50fdb6202..e622c0680 100644 --- a/Source/Glitch64/main.cpp +++ b/Source/Glitch64/main.cpp @@ -213,7 +213,7 @@ int screen_width, screen_height; static inline void opt_glCopyTexImage2D( GLenum target, GLint level, - GLenum internalFormat, + GLint internalFormat, GLint x, GLint y, GLsizei width,