···5757option(SDL_gpu_DISABLE_GLES_3 "Disable OpenGLES 3.X renderer" OFF)
58585959option(SDL_gpu_USE_SYSTEM_GLEW "Attempt to use the system GLEW library (may not support GL 3+)" OFF)
6060+option(SDL_gpu_DYNAMIC_GLES_3 "Attempt to run-time link to GLES 3" OFF)
60616162option(SDL_gpu_USE_BUFFER_RESET "Upload VBOs by requesting a new one each time (default). This is often the best for driver optimization)" ON)
6263option(SDL_gpu_USE_BUFFER_UPDATE "Upload VBOs by updating only the needed portion" OFF)
···218219 if (SDL_gpu_DISABLE_GLES_3)
219220 add_definitions("-DSDL_GPU_DISABLE_GLES_3")
220221 endif (SDL_gpu_DISABLE_GLES_3)
221221-222222+223223+ include_directories(src/externals/gl3stub)
224224+ if (SDL_gpu_DYNAMIC_GLES_3)
225225+ SET(SDL_gpu_HDRS ${SDL_gpu_HDRS} externals/gl3stub/gl3stub.c externals/gl3stub/gl3stub.h)
226226+ add_definitions("-DSDL_GPU_DYNAMIC_GLES_3")
227227+ endif(SDL_gpu_DYNAMIC_GLES_3)
222228endif (SDL_gpu_DISABLE_GLES)
223229224230# If stb-image is not found here, we’ll use the bundled version