summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-09-01 14:53:47 -0500
committerDerek Foreman <derekf@osg.samsung.com>2016-09-08 13:55:23 -0500
commit31de16d40840381cf9d425441cd55c3b1d57301c (patch)
tree2e232f5fa1d5f0b4462fb9060736089d3ed200b5 /src/modules/ecore_evas
parent398771bf8afb0399184854b87b30b4a58c1d2aa3 (diff)
ecore_evas_drm: check for libglapi presence first
Minor refactor
Diffstat (limited to 'src/modules/ecore_evas')
-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);