this repo has no description
0
fork

Configure Feed

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

Added some NULL target protection to the GL renderers' Flip().

+10 -7
+10 -7
src/renderer_GL_common.inl
··· 5488 5488 static void Flip(GPU_Renderer* renderer, GPU_Target* target) 5489 5489 { 5490 5490 renderer->impl->FlushBlitBuffer(renderer); 5491 + 5492 + if(target != NULL && target->context != NULL) 5493 + { 5494 + makeContextCurrent(renderer, target); 5491 5495 5492 - makeContextCurrent(renderer, target); 5493 - 5494 - #ifdef SDL_GPU_USE_SDL2 5495 - SDL_GL_SwapWindow(SDL_GetWindowFromID(renderer->current_context_target->context->windowID)); 5496 - #else 5497 - SDL_GL_SwapBuffers(); 5498 - #endif 5496 + #ifdef SDL_GPU_USE_SDL2 5497 + SDL_GL_SwapWindow(SDL_GetWindowFromID(renderer->current_context_target->context->windowID)); 5498 + #else 5499 + SDL_GL_SwapBuffers(); 5500 + #endif 5501 + } 5499 5502 5500 5503 #ifdef SDL_GPU_USE_OPENGL 5501 5504 if(vendor_is_Intel)