mirror of
				https://github.com/Ryujinx/SDL.git
				synced 2025-11-04 15:34:58 +00:00 
			
		
		
		
	Don't incorrectly report success for negative swap intervals on Mac OS X.
This commit is contained in:
		
							parent
							
								
									fae4190dca
								
							
						
					
					
						commit
						bfe1b1d066
					
				| 
						 | 
				
			
			@ -302,6 +302,10 @@ Cocoa_GL_SetSwapInterval(_THIS, int interval)
 | 
			
		|||
    GLint value;
 | 
			
		||||
    int status;
 | 
			
		||||
 | 
			
		||||
    if (interval < 0) {  /* no extension for this on Mac OS X at the moment. */
 | 
			
		||||
        return SDL_SetError("Late swap tearing currently unsupported");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    pool = [[NSAutoreleasePool alloc] init];
 | 
			
		||||
 | 
			
		||||
    nscontext = (NSOpenGLContext*)SDL_GL_GetCurrentContext();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue