mirror of
				https://github.com/Ryujinx/SDL.git
				synced 2025-11-04 07:44:48 +00:00 
			
		
		
		
	avoid NullPointer in SDL_GL_MakeCurrent
This commit is contained in:
		
							parent
							
								
									55a4e1d336
								
							
						
					
					
						commit
						01b14e14e6
					
				| 
						 | 
				
			
			@ -3924,6 +3924,10 @@ SDL_GL_MakeCurrent(SDL_Window * window, SDL_GLContext ctx)
 | 
			
		|||
{
 | 
			
		||||
    int retval;
 | 
			
		||||
 | 
			
		||||
    if (!_this) {
 | 
			
		||||
        return SDL_UninitializedVideo();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (window == SDL_GL_GetCurrentWindow() &&
 | 
			
		||||
        ctx == SDL_GL_GetCurrentContext()) {
 | 
			
		||||
        /* We're already current. */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue