Skip to content

Commit eac0836

Browse files
authored
don't truncate buffer size to int (#1474)
* don't truncate buffer size to int
1 parent 0be7a02 commit eac0836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/primitives/prim_opengl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ int _al_draw_indexed_buffer_opengl(ALLEGRO_BITMAP* target, ALLEGRO_BITMAP* textu
672672
}
673673

674674
#ifdef ALLEGRO_CFG_OPENGL
675-
static bool create_buffer_common(ALLEGRO_BUFFER_COMMON* common, GLenum type, const void* initial_data, int size, int flags)
675+
static bool create_buffer_common(ALLEGRO_BUFFER_COMMON* common, GLenum type, const void* initial_data, GLsizeiptr size, int flags)
676676
{
677677
GLuint vbo;
678678
GLenum usage;

0 commit comments

Comments
 (0)