From e6579f4bde872d859de079c1aa6d11acd47ea38d Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Fri, 16 Oct 2015 13:49:21 -0400 Subject: [PATCH] lib/egl: move `report_egl_error` from Object to `EGLDisplay` Signed-off-by: Jean Privat --- lib/egl.nit | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/egl.nit b/lib/egl.nit index 69df8e5..d188c29 100644 --- a/lib/egl.nit +++ b/lib/egl.nit @@ -103,6 +103,12 @@ extern class EGLDisplay `{ EGLDisplay `} } `} + private fun report_egl_error(cmsg: NativeString) + do + var msg = cmsg.to_s + print "libEGL error: {msg}" + end + # Can be used directly, but it is preferable to use a `EGLConfigAttribs` fun config_attrib(config: EGLConfig, attribute: Int): Int `{ EGLint val; @@ -443,14 +449,6 @@ class EGLConfigChooser end end -redef class Object - private fun report_egl_error(cmsg: NativeString) - do - var msg = cmsg.to_s - print "libEGL error: {msg}" - end -end - fun egl_bind_opengl_api: Bool `{ return eglBindAPI(EGL_OPENGL_API); `} fun egl_bind_opengl_es_api: Bool `{ return eglBindAPI(EGL_OPENGL_ES_API); `} fun egl_bind_openvg_api: Bool `{ return eglBindAPI(EGL_OPENVG_API); `} -- 1.7.9.5