Browse Source

Update and rename Zengl_SRC/src/zgl_opengl.pas to Zengl_SRC /src /zgl_opengl.pas

Seenkao 3 years ago
parent
commit
126e88853c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Zengl_SRC /src /zgl_opengl.pas

+ 2 - 2
Zengl_SRC/src/zgl_opengl.pas → Zengl_SRC /src /zgl_opengl.pas

@@ -578,7 +578,7 @@ begin
         exit;
       end;
     end;
-  end
+  end {$IfDef GL_VERSION_3_0}
   else begin
     contextAttr[0] := GLX_CONTEXT_MAJOR_VERSION_ARB;
     contextAttr[1] := maxGLVerMajor;
@@ -610,7 +610,7 @@ begin
         exit;
       end;
     end;
-  end;
+  end{$EndIf};
   if not glXMakeCurrent(scrDisplay, wndHandle, oglContext) Then
   begin
     u_Error('Cannot set current OpenGL context');