(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.
This commit is contained in:
unknown 2015-02-01 11:50:29 -05:00
parent b6d7e6fdae
commit aa165488ca
1 changed files with 1 additions and 1 deletions

View File

@ -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,