Skip to content

Commit

Permalink
Replace glGetInteger64v with glGetBufferParameteri64v (#4154)
Browse files Browse the repository at this point in the history
  • Loading branch information
kai-kj committed Jul 11, 2024
1 parent 44c6cd2 commit 8d5374a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rlgl.h
Original file line number Diff line number Diff line change
Expand Up @@ -4401,7 +4401,7 @@ unsigned int rlGetShaderBufferSize(unsigned int id)

#if defined(GRAPHICS_API_OPENGL_43)
glBindBuffer(GL_SHADER_STORAGE_BUFFER, id);
glGetInteger64v(GL_SHADER_STORAGE_BUFFER_SIZE, &size);
glGetBufferParameteri64v(GL_SHADER_STORAGE_BUFFER, GL_BUFFER_SIZE, &size);
#endif

return (size > 0)? (unsigned int)size : 0;
Expand Down

0 comments on commit 8d5374a

Please sign in to comment.