summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAntonis Geralis <[email protected]>2022-11-24 01:58:31 +0200
committerGitHub <[email protected]>2022-11-24 00:58:31 +0100
commit2c77b31e304688c4067503d70f539dbb9a496816 (patch)
tree0cc1b7f7e1251434551d41ba64367edabede267c /src
parentc48de2d1afdeefa99c5ad7760ffe8873993c841c (diff)
downloadraylib-2c77b31e304688c4067503d70f539dbb9a496816.tar.gz
raylib-2c77b31e304688c4067503d70f539dbb9a496816.zip
Correct types for rlBindImageTexture (#2808)
Diffstat (limited to 'src')
-rw-r--r--src/rlgl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 496f4c41..59c4880d 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -696,7 +696,7 @@ RLAPI void rlCopyShaderBuffer(unsigned int destId, unsigned int srcId, unsigned
RLAPI unsigned int rlGetShaderBufferSize(unsigned int id); // Get SSBO buffer size
// Buffer management
-RLAPI void rlBindImageTexture(unsigned int id, unsigned int index, unsigned int format, int readonly); // Bind image texture
+RLAPI void rlBindImageTexture(unsigned int id, unsigned int index, int format, bool readonly); // Bind image texture
// Matrix state management
RLAPI Matrix rlGetMatrixModelview(void); // Get internal modelview matrix
@@ -4055,7 +4055,7 @@ void rlCopyShaderBuffer(unsigned int destId, unsigned int srcId, unsigned int de
}
// Bind image texture
-void rlBindImageTexture(unsigned int id, unsigned int index, unsigned int format, int readonly)
+void rlBindImageTexture(unsigned int id, unsigned int index, int format, bool readonly)
{
#if defined(GRAPHICS_API_OPENGL_43)
unsigned int glInternalFormat = 0, glFormat = 0, glType = 0;