Fix core context creation in GdkGLContext
- Specifically request GL version when creating context. Just specifying core profile bit results in the requested version defaulting to 1.0 which causes the core profile bit to be ignored and an arbitrary compatability context to be returned. - Fix GL painting by removing GL calls that have been depricated by the 3.2 core profile. - Additionally remove glInvalidateFramebuffer() call, it is not supported by 3.2 core. https://bugzilla.gnome.org/show_bug.cgi?id=742953
This commit is contained in:
		 Niels Nesse
					Niels Nesse
				
			
				
					committed by
					
						 Emmanuele Bassi
						Emmanuele Bassi
					
				
			
			
				
	
			
			
			 Emmanuele Bassi
						Emmanuele Bassi
					
				
			
						parent
						
							9e85fcbe7c
						
					
				
				
					commit
					27cf0fa34c
				
			| @ -752,6 +752,8 @@ create_gl3_context (GdkDisplay   *display, | ||||
|    */ | ||||
|   static const int attrib_list[] = { | ||||
|     GLX_CONTEXT_PROFILE_MASK_ARB, GLX_CONTEXT_CORE_PROFILE_BIT_ARB, | ||||
|     GLX_CONTEXT_MAJOR_VERSION_ARB, 3, | ||||
|     GLX_CONTEXT_MINOR_VERSION_ARB, 2, | ||||
|     None, | ||||
|   }; | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user