(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:
parent
b6d7e6fdae
commit
aa165488ca
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue