lib/mnit/opengles: cleanup C dependencies.
authorJean Privat <jean@pryen.org>
Thu, 28 Aug 2014 15:05:15 +0000 (11:05 -0400)
committerJean Privat <jean@pryen.org>
Thu, 28 Aug 2014 15:05:15 +0000 (11:05 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/mnit/opengles1.nit
lib/mnit_linux/linux_opengles1.nit

index 56c6b29..b19fbc7 100644 (file)
 # limitations under the License.
 
 # OpenGL ES1 general support (most of it)
-module opengles1 is pkgconfig("glesv1_cm", "x11", "egl")
+module opengles1 is pkgconfig("glesv1_cm", "egl")
 
 import mnit_display
 
 in "C header" `{
        #include <EGL/egl.h>
        #include <GLES/gl.h>
-       #define GL_GLEXT_PROTOTYPES 1
-       #include <GLES/glext.h>
-       #include <errno.h>
 
        EGLDisplay mnit_display;
        EGLSurface mnit_surface;
index 99440fa..106bc07 100644 (file)
@@ -14,7 +14,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-module linux_opengles1
+module linux_opengles1 is pkgconfig("x11")
 
 import mnit::opengles1