소스 검색

* update AllOk parameter of Load_GL_version_1_2x() when loading an extension
fails (mantis #30663, patch by Paul Michell)

git-svn-id: trunk@34595 -

Jonas Maebe 9 년 전
부모
커밋
37a365c236
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      packages/opengl/src/glext.pp

+ 6 - 6
packages/opengl/src/glext.pp

@@ -5201,17 +5201,17 @@ end;
 procedure Load_GL_version_1_2x(var allOK: Boolean);
 procedure Load_GL_version_1_2x(var allOK: Boolean);
 begin
 begin
   glBlendColor := wglGetProcAddress('glBlendColor');
   glBlendColor := wglGetProcAddress('glBlendColor');
-  if not Assigned(glBlendColor) then Exit;
+  if not Assigned(glBlendColor) then allOK := False;
   glBlendEquation := wglGetProcAddress('glBlendEquation');
   glBlendEquation := wglGetProcAddress('glBlendEquation');
-  if not Assigned(glBlendEquation) then Exit;
+  if not Assigned(glBlendEquation) then allOK := False;
   glDrawRangeElements := wglGetProcAddress('glDrawRangeElements');
   glDrawRangeElements := wglGetProcAddress('glDrawRangeElements');
-  if not Assigned(glDrawRangeElements) then Exit;
+  if not Assigned(glDrawRangeElements) then allOK := False;
   glTexImage3D := wglGetProcAddress('glTexImage3D');
   glTexImage3D := wglGetProcAddress('glTexImage3D');
-  if not Assigned(glTexImage3D) then Exit;
+  if not Assigned(glTexImage3D) then allOK := False;
   glTexSubImage3D := wglGetProcAddress('glTexSubImage3D');
   glTexSubImage3D := wglGetProcAddress('glTexSubImage3D');
-  if not Assigned(glTexSubImage3D) then Exit;
+  if not Assigned(glTexSubImage3D) then allOK := False;
   glCopyTexSubImage3D := wglGetProcAddress('glCopyTexSubImage3D');
   glCopyTexSubImage3D := wglGetProcAddress('glCopyTexSubImage3D');
-  if not Assigned(glCopyTexSubImage3D) then Exit;
+  if not Assigned(glCopyTexSubImage3D) then allOK := False;
 end;
 end;
 
 
 function Load_GL_version_1_2: boolean;
 function Load_GL_version_1_2: boolean;