this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Added CMake option SDL_gpu_USE_SYSTEM_GLEW so that the bundled GLEW can be the default for proper GL 3+ support.

+10 -5
+10 -5
CMakeLists.txt
··· 45 45 option(SDL_gpu_DISABLE_GLES_2 "Disable OpenGLES 2.X renderer" OFF) 46 46 option(SDL_gpu_DISABLE_GLES_3 "Disable OpenGLES 3.X renderer" OFF) 47 47 48 + option(SDL_gpu_USE_SYSTEM_GLEW "Attempt to use the system GLEW library (may not support GL 3+)" OFF) 49 + 48 50 if(APPLE) 49 51 if(IOS) 50 52 # iOS 8 may need the framework option ··· 134 136 add_definitions("-DSDL_GPU_DISABLE_OPENGL_4") 135 137 endif (SDL_gpu_DISABLE_OPENGL_4) 136 138 137 - # If glew is not found here, we’ll use the bundled version 138 - find_package(GLEW) 139 - if(NOT GLEW_FOUND) 140 - message(" Using bundled version of GLEW") 141 - endif(NOT GLEW_FOUND) 139 + if(SDL_gpu_USE_SYSTEM_GLEW) 140 + # If glew is not found here, we’ll use the bundled version 141 + find_package(GLEW) 142 + endif() 143 + 144 + if(NOT GLEW_FOUND) 145 + message(" Using bundled version of GLEW") 146 + endif(NOT GLEW_FOUND) 142 147 143 148 144 149 if (NOT SDL_gpu_DISABLE_OPENGL)