Browse Source

* 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 8 years ago
parent
commit
37a365c236
1 changed files with 6 additions and 6 deletions
  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;