mirror of
				https://github.com/Ryujinx/Opentk.git
				synced 2025-11-04 15:05:07 +00:00 
			
		
		
		
	Merge pull request #653 from Nihlus/getaddress-wgl-fix
Use Wgl::GetAddress instead of Wgl::GetProcAddress in Utilities
This commit is contained in:
		
						commit
						db4546d896
					
				| 
						 | 
				
			
			@ -182,7 +182,7 @@ namespace OpenTK.Platform
 | 
			
		|||
            #if WIN32
 | 
			
		||||
            if (Configuration.RunningOnWindows)
 | 
			
		||||
            {
 | 
			
		||||
                return Platform.Windows.Wgl.GetProcAddress;
 | 
			
		||||
                return Platform.Windows.Wgl.GetAddress;
 | 
			
		||||
            }
 | 
			
		||||
            #endif
 | 
			
		||||
            #if X11
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -94,7 +94,7 @@ namespace OpenTK.Platform.Windows
 | 
			
		|||
            get { return sync; }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private IntPtr GetAddress(string function_string)
 | 
			
		||||
        internal static IntPtr GetAddress(string function_string)
 | 
			
		||||
        {
 | 
			
		||||
            IntPtr address = Wgl.GetProcAddress(function_string);
 | 
			
		||||
            if (!IsValid(address))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue