Fixed type error stopping compilation

fixed issue where gl_indices was defined as a cc_uint16** despite "fillFunc" wanting a cc_uint16*
This commit is contained in:
Ray 2025-05-24 19:00:05 +01:00 committed by GitHub
parent 0624680953
commit aedbcb51b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,7 +105,7 @@ void Gfx_Create(void) {
#ifndef CC_BUILD_GL11
GfxResourceID Gfx_CreateIb2(int count, Gfx_FillIBFunc fillFunc, void* obj) {
#ifndef GL_INDICES
cc_uint16* gl_indices[GFX_MAX_INDICES];
cc_uint16 gl_indices[GFX_MAX_INDICES];
#endif
GfxResourceID id = NULL;
cc_uint32 size = count * sizeof(cc_uint16);