From 7d384913ee11e3ddb125a564d2d1c73217bae76e Mon Sep 17 00:00:00 2001 From: Gauthier Billot Date: Thu, 22 Aug 2024 08:32:35 +0200 Subject: [PATCH] Fix gl.c for gcc 14.1.1 --- libs/sdl/gl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sdl/gl.c b/libs/sdl/gl.c index 860928078..619db387b 100644 --- a/libs/sdl/gl.c +++ b/libs/sdl/gl.c @@ -586,7 +586,7 @@ HL_PRIM void HL_NAME(gl_multi_draw_elements_indirect)( int mode, int type, vbyte HL_PRIM void HL_NAME(gl_multi_draw_elements_indirect_count)(int mode, int type, vbyte* data, vbyte* drawcount, int maxdrawcount, int stride) { GL_IMPORT_OPT(glMultiDrawElementsIndirectCountARB, MULTIDRAWELEMENTSINDIRECTCOUNTARB) - glMultiDrawElementsIndirectCountARB(mode, type, data, drawcount, maxdrawcount, stride); + glMultiDrawElementsIndirectCountARB(mode, type, data, (GLintptr)drawcount, maxdrawcount, stride); } HL_PRIM int HL_NAME(gl_get_config_parameter)( int feature ) {