mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-30 17:51:32 +01:00 
			
		
		
		
	* when loading the functions for a particular OpenGL function, also
automatically load those for lower versions (patch by "satan", mantis
    #13687)
git-svn-id: trunk@13167 -
			
			
This commit is contained in:
		
							parent
							
								
									b5985d7e7c
								
							
						
					
					
						commit
						3d771a7d39
					
				| @ -4484,7 +4484,7 @@ begin | ||||
|     if not Assigned(glCompressedTexSubImage1D) then Exit; | ||||
|     glGetCompressedTexImage := wglGetProcAddress('glGetCompressedTexImage'); | ||||
|     if not Assigned(glGetCompressedTexImage) then Exit; | ||||
|     Result := TRUE; | ||||
|     Result := Load_GL_version_1_2; | ||||
| 
 | ||||
| end; | ||||
| 
 | ||||
| @ -9081,7 +9081,7 @@ begin | ||||
|     if not Assigned(glWindowPos3s) then Exit; | ||||
|     glWindowPos3sv := wglGetProcAddress('glWindowPos3sv'); | ||||
|     if not Assigned(glWindowPos3sv) then Exit; | ||||
|     Result := TRUE; | ||||
|     Result := Load_GL_version_1_3; | ||||
| 
 | ||||
| end; | ||||
| 
 | ||||
| @ -9131,7 +9131,7 @@ begin | ||||
|     if not Assigned(glGetBufferParameteriv) then Exit; | ||||
|     glGetBufferPointerv := wglGetProcAddress('glGetBufferPointerv'); | ||||
|     if not Assigned(glGetBufferPointerv) then Exit; | ||||
|     Result := TRUE; | ||||
|     Result := Load_GL_version_1_4; | ||||
| 
 | ||||
| end; | ||||
| 
 | ||||
| @ -9329,7 +9329,7 @@ begin | ||||
|     if not Assigned(glVertexAttrib4usv) then Exit; | ||||
|     glVertexAttribPointer := wglGetProcAddress('glVertexAttribPointer'); | ||||
|     if not Assigned(glVertexAttribPointer) then Exit; | ||||
|     Result := TRUE; | ||||
|     Result := Load_GL_version_1_5; | ||||
| 
 | ||||
| end; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Jonas Maebe
						Jonas Maebe