summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/ecore_evas/engines/drm/ecore_evas_drm.c')
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index 59278aa4f2..eef1bdaf62 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -796,6 +796,9 @@ ecore_evas_gl_drm_new_internal(const char *device, unsigned int parent EINA_UNUS
796 Ecore_Evas_Engine_Drm_Data *edata; 796 Ecore_Evas_Engine_Drm_Data *edata;
797 int method, mw, mh; 797 int method, mw, mh;
798 798
799 dlopen("libglapi.so.0", RTLD_LAZY | RTLD_GLOBAL);
800 if (dlerror()) return NULL;
801
799 method = evas_render_method_lookup("gl_drm"); 802 method = evas_render_method_lookup("gl_drm");
800 if (!method) return NULL; 803 if (!method) return NULL;
801 804
@@ -817,14 +820,6 @@ ecore_evas_gl_drm_new_internal(const char *device, unsigned int parent EINA_UNUS
817 edata->bpp = 32; // FIXME: Remove hardcode 820 edata->bpp = 32; // FIXME: Remove hardcode
818 edata->format = DRM_FORMAT_XRGB8888; 821 edata->format = DRM_FORMAT_XRGB8888;
819 822
820 dlopen("libglapi.so.0", RTLD_LAZY | RTLD_GLOBAL);
821 if (dlerror())
822 {
823 free(edata);
824 free(ee);
825 return NULL;
826 }
827
828 if (_ecore_evas_drm_init(edata, device) < 1) 823 if (_ecore_evas_drm_init(edata, device) < 1)
829 { 824 {
830 free(edata); 825 free(edata);