project_files/Android-build/gles11.pp
changeset 7850 fcbb024090a4
parent 5621 ea796c83ea47
child 10108 c68cf030eded
--- a/project_files/Android-build/gles11.pp	Sun Oct 28 04:00:07 2012 +0100
+++ b/project_files/Android-build/gles11.pp	Sun Oct 28 04:28:39 2012 +0100
@@ -32,7 +32,8 @@
     gl.hh
 }
 
-  procedure init;
+  procedure initModule;
+  procedure freeModule;
 
   const
     External_library='GLESv1_CM'; {Setup as you need}
@@ -1106,15 +1107,14 @@
       pointer(glPointSizePointerOES):=GetProcAddress(hlib,'glPointSizePointerOES');
     end;
 
-procedure init;
+procedure initModule;
 begin
     Loadgles11('libGLESv1_CM.so');
 end;
 
-
-initialization
-  Loadgles11('gles11');
-finalization
+procedure freeModule;
+begin
   Freegles11;
+end;
 
 end.