Skip to content

Commit d314afc

Browse files
authored
rlgl.h: glint64 did not exist before OpenGL 3.2 (#4284)
Compilation breaks on rlgl.h for early OpenGL versions. Glint64 did not exist on those versions (< OpenGL 3.2)
1 parent 0c06a08 commit d314afc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rlgl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4414,14 +4414,14 @@ void rlUpdateShaderBuffer(unsigned int id, const void *data, unsigned int dataSi
44144414
// Get SSBO buffer size
44154415
unsigned int rlGetShaderBufferSize(unsigned int id)
44164416
{
4417-
GLint64 size = 0;
4418-
44194417
#if defined(GRAPHICS_API_OPENGL_43)
4418+
GLint64 size = 0;
44204419
glBindBuffer(GL_SHADER_STORAGE_BUFFER, id);
44214420
glGetBufferParameteri64v(GL_SHADER_STORAGE_BUFFER, GL_BUFFER_SIZE, &size);
4422-
#endif
4423-
44244421
return (size > 0)? (unsigned int)size : 0;
4422+
#else
4423+
return 0;
4424+
#endif
44254425
}
44264426

44274427
// Read SSBO buffer data (GPU->CPU)

0 commit comments

Comments
 (0)