Fix signedness in rlBindImageTexture

rlGetGlTextureFormats was expecting unsigned int, corrected variables according to that.
This commit is contained in:
Hanaxar 2022-06-23 10:17:02 +03:00 committed by GitHub
parent b1fb469e0d
commit a81aa0c369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4010,7 +4010,7 @@ void rlCopyBuffersElements(unsigned int destId, unsigned int srcId, unsigned lon
void rlBindImageTexture(unsigned int id, unsigned int index, unsigned int format, int readonly)
{
#if defined(GRAPHICS_API_OPENGL_43)
int glInternalFormat = 0, glFormat = 0, glType = 0;
unsigned int glInternalFormat = 0, glFormat = 0, glType = 0;
rlGetGlTextureFormats(format, &glInternalFormat, &glFormat, &glType);
glBindImageTexture(index, id, 0, 0, 0, readonly ? GL_READ_ONLY : GL_READ_WRITE, glInternalFormat);