My game has 12860 images loaded to memory use these function:
If the image count is 12800 the game running ok.
But when the image count is 12860 the game will crash.
The crash code location is ‘if (!_this->egl_data->eglSwapBuffers(_this->egl_data->egl_display, egl_surface))’
The call stack start location is ‘SDL_RenderPresent( gRenderer )’
I know the problem is image count too large. But I don’t know use what API to detect the image count overflow. All my function call to create image return value is true.
who know use which API to detect the image loaded too much?