summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/software_generic/evas_native_dmabuf.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-06-29 13:51:07 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-06-29 13:51:07 -0500
commit892bfe7c98eedcc8f40e952d27ba3f65db6f0fed (patch)
treeaeb6e8761b2eb873b5eebd5c964b2419d52a749d /src/modules/evas/engines/software_generic/evas_native_dmabuf.c
parent4024857bf6098b91ed3859fac9bfc149b4db3b81 (diff)
dmabuf: Make a define for the version of the dmabuf attribute struct
I should've done this in the first place, and the version checks are starting to spread out a bit.
Diffstat (limited to 'src/modules/evas/engines/software_generic/evas_native_dmabuf.c')
-rw-r--r--src/modules/evas/engines/software_generic/evas_native_dmabuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/engines/software_generic/evas_native_dmabuf.c b/src/modules/evas/engines/software_generic/evas_native_dmabuf.c
index f01a6c4751..bd88850ab4 100644
--- a/src/modules/evas/engines/software_generic/evas_native_dmabuf.c
+++ b/src/modules/evas/engines/software_generic/evas_native_dmabuf.c
@@ -107,7 +107,7 @@ _evas_native_dmabuf_surface_image_set(void *image, void *native)
107 if (!n) return NULL; 107 if (!n) return NULL;
108 108
109 a = ns->data.wl_dmabuf.attr; 109 a = ns->data.wl_dmabuf.attr;
110 if (a->version != 1) 110 if (a->version != EVAS_DMABUF_ATTRIBUTE_VERSION)
111 { 111 {
112 free(n); 112 free(n);
113 return NULL; 113 return NULL;