Browse Source

* changed error to warning for unknown build system

Bergmann89 4 years ago
parent
commit
309069cd27
1 changed files with 5 additions and 1 deletions
  1. 5 1
      dglOpenGLES.pas

+ 5 - 1
dglOpenGLES.pas

@@ -77,7 +77,10 @@ const
77 77
   LIBNAME_EGL      = 'libEGL.so';
78 78
 
79 79
 {$ELSE}
80
-  {$ERROR 'unknown/unsupported system'}
80
+const
81
+  LIBNAME_OPENGLES = '';
82
+  LIBNAME_EGL      = '';
83
+  {$WARNING 'unknown/unsupported system'}
81 84
 
82 85
 {$ENDIF}
83 86
 
@@ -4951,6 +4954,7 @@ var
4951 4954
 
4952 4955
 function dglLoadLibrary(const name: PChar): Pointer;
4953 4956
 begin
4957
+  result := nil;
4954 4958
   {$IFDEF DGL_LINUX}
4955 4959
   result := dlopen(name, RTLD_LAZY);
4956 4960
   {$ENDIF}