mirror of
				https://github.com/Ryujinx/Opentk.git
				synced 2025-11-04 15:05:07 +00:00 
			
		
		
		
	Enable error checking for debug contexts.
This commit is contained in:
		
							parent
							
								
									c8ca1f33df
								
							
						
					
					
						commit
						881b7553d9
					
				| 
						 | 
				
			
			@ -256,6 +256,11 @@ namespace OpenTK
 | 
			
		|||
            // Create a dummy context that will grab the GdkGLContext that is current on the thread
 | 
			
		||||
            _GraphicsContext = new GraphicsContext(ContextHandle.Zero, null);
 | 
			
		||||
 | 
			
		||||
            if (GraphicsContextFlags.HasFlag(GraphicsContextFlags.Debug))
 | 
			
		||||
            {
 | 
			
		||||
                _GraphicsContext.ErrorChecking = true;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (GraphicsContext.ShareContexts)
 | 
			
		||||
            {
 | 
			
		||||
                Interlocked.Increment(ref _GraphicsContextCount);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue