Skip to content

Commit 2c77b31

Browse files
authored
Correct types for rlBindImageTexture (#2808)
1 parent c48de2d commit 2c77b31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rlgl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ RLAPI void rlCopyShaderBuffer(unsigned int destId, unsigned int srcId, unsigned
696696
RLAPI unsigned int rlGetShaderBufferSize(unsigned int id); // Get SSBO buffer size
697697

698698
// Buffer management
699-
RLAPI void rlBindImageTexture(unsigned int id, unsigned int index, unsigned int format, int readonly); // Bind image texture
699+
RLAPI void rlBindImageTexture(unsigned int id, unsigned int index, int format, bool readonly); // Bind image texture
700700

701701
// Matrix state management
702702
RLAPI Matrix rlGetMatrixModelview(void); // Get internal modelview matrix
@@ -4055,7 +4055,7 @@ void rlCopyShaderBuffer(unsigned int destId, unsigned int srcId, unsigned int de
40554055
}
40564056

40574057
// Bind image texture
4058-
void rlBindImageTexture(unsigned int id, unsigned int index, unsigned int format, int readonly)
4058+
void rlBindImageTexture(unsigned int id, unsigned int index, int format, bool readonly)
40594059
{
40604060
#if defined(GRAPHICS_API_OPENGL_43)
40614061
unsigned int glInternalFormat = 0, glFormat = 0, glType = 0;

0 commit comments

Comments
 (0)