Select the types of activity you want to include in your feed.
Jonathan manually fixed my patch instead of taking my branch, so now my
tracking branch is out of sync. Blurrr uses a downstream branch so
rewriting history is a terrible idea. So this merge has to be done.
Merge branch 'official'
···67676868set(SDL_gpu_VERSION 0.11.0)
69697070-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/scripts)
7070+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/scripts)
71717272if(APPLE)
7373 include(ios-cmake/toolchain/XcodeDefaults)
···8282# Find the package for SDL or SDL2
8383if ( SDL_gpu_USE_SDL1 )
8484 find_package(SDL REQUIRED)
8585-8585+8686 if ( NOT SDL_FOUND )
8787 message ( FATAL_ERROR "SDL not found!" )
8888 endif ( NOT SDL_FOUND )
8989-8989+9090 include_directories(${SDL_INCLUDE_DIR})
9191 link_libraries(${SDL_LIBRARY})
9292else ( SDL_gpu_USE_SDL1 )
9393 find_package(SDL2 REQUIRED)
9494-9494+9595 if ( NOT SDL2_FOUND )
9696 message ( FATAL_ERROR "SDL2 not found!" )
9797 endif ( NOT SDL2_FOUND )
9898-9898+9999 if ( NOT SDL2MAIN_LIBRARY )
100100 message ( WARNING "SDL2MAIN_LIBRARY is NOTFOUND" )
101101 SET( SDL2MAIN_LIBRARY "" )
···119119 link_libraries(${OPENGL_LIBRARIES})
120120 endif()
121121122122-122122+123123 if (SDL_gpu_DISABLE_OPENGL_1_BASE)
124124 add_definitions("-DSDL_GPU_DISABLE_OPENGL_1_BASE")
125125 endif (SDL_gpu_DISABLE_OPENGL_1_BASE)
···135135 if (SDL_gpu_DISABLE_OPENGL_4)
136136 add_definitions("-DSDL_GPU_DISABLE_OPENGL_4")
137137 endif (SDL_gpu_DISABLE_OPENGL_4)
138138-138138+139139 if(SDL_gpu_USE_SYSTEM_GLEW)
140140 # If glew is not found here, we’ll use the bundled version
141141 find_package(GLEW)
···144144 if(NOT GLEW_FOUND)
145145 message(" Using bundled version of GLEW")
146146 endif(NOT GLEW_FOUND)
147147-148148-147147+148148+149149 if (NOT SDL_gpu_DISABLE_OPENGL)
150150 if(GLEW_FOUND)
151151 # Look in the GL subdirectory, too.
152152 foreach(GL_DIR ${GLEW_INCLUDE_DIRS})
153153 set(GLEW_GL_DIRS ${GLEW_GL_DIRS} "${GL_DIR}/GL")
154154 endforeach(GL_DIR ${GLEW_INCLUDE_DIRS})
155155-155155+156156 include_directories(${GLEW_INCLUDE_DIRS} ${GLEW_GL_DIRS})
157157 link_libraries (${GLEW_LIBRARIES})
158158 else(GLEW_FOUND)
···178178 ${ANDROID_GLES2_LIBRARY}
179179 ${ANDROID_GLES1_LIBRARY}
180180 )
181181- else()
181181+ else()
182182 find_package(OpenGLES REQUIRED)
183183 include_directories(${OPENGLES_INCLUDE_DIR})
184184 link_libraries (${OPENGLES_LIBRARIES})
···193193 if (SDL_gpu_DISABLE_GLES_3)
194194 add_definitions("-DSDL_GPU_DISABLE_GLES_3")
195195 endif (SDL_gpu_DISABLE_GLES_3)
196196-196196+197197endif (SDL_gpu_DISABLE_GLES)
198198199199# If stb-image is not found here, we’ll use the bundled version
···245245# Build the tests
246246if(SDL_gpu_BUILD_TESTS)
247247 if(SDL_gpu_BUILD_VIDEO_TEST)
248248-248248+249249 find_package(FFMPEG REQUIRED)
250250 include_directories(${FFMPEG_INCLUDE_DIR})
251251 link_libraries (${FFMPEG_LIBRARIES})
252252-252252+253253 add_definitions("-DSDL_GPU_BUILD_VIDEO_TEST")
254254 endif(SDL_gpu_BUILD_VIDEO_TEST)
255255-255255+256256 add_subdirectory(tests)
257257endif(SDL_gpu_BUILD_TESTS)
258258···260260if(SDL_gpu_BUILD_TOOLS)
261261 add_subdirectory(tools)
262262endif(SDL_gpu_BUILD_TOOLS)
263263-
+7-6
src/renderer_GL_common.inl
···10611061 }
1062106210631063 // Store the window info
10641064- SDL_GetWindowSize(window, &target->context->window_w, &target->context->window_h);
10651065- target->context->stored_window_w = target->context->window_w;
10661066- target->context->stored_window_h = target->context->window_h;
10671064 target->context->windowID = SDL_GetWindowID(window);
10681068-10651065+10691066 // Make a new context if needed and make it current
10701067 if(created || target->context->context == NULL)
10711068 {
···10731070 GPU_AddWindowMapping(target);
10741071 }
1075107210761076- // SDL_GL_GetDrawableSize must be called after SDL_GL_CreateContext or it will not do anything.
10731073+ // Get window dimensions
10741074+ SDL_GetWindowSize(window, &target->context->window_w, &target->context->window_h);
10751075+ target->context->stored_window_w = target->context->window_w;
10761076+ target->context->stored_window_h = target->context->window_h;
10771077+ // We need a GL context before we can get the drawable size.
10771078 SDL_GL_GetDrawableSize(window, &target->context->drawable_w, &target->context->drawable_h);
10781078-10791079+10791080 #else
1080108110811082 screen = SDL_GetVideoSurface();