summaryrefslogtreecommitdiff
path: root/src/lib/ector/software/ector_software_buffer.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-12-16 16:44:57 -0800
committerJean-Philippe Andre <jp.andre@samsung.com>2016-01-05 15:43:44 +0900
commite3a7f657d91631d0d3828e70d092b94429ead098 (patch)
tree92d8b1cc6db81be7f963149a134b072929292ce4 /src/lib/ector/software/ector_software_buffer.c
parent116fe3c65cd541b85623820605e237c4076024f2 (diff)
ector: add Ector.GL.Buffer.* support.
Diffstat (limited to 'src/lib/ector/software/ector_software_buffer.c')
-rw-r--r--src/lib/ector/software/ector_software_buffer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/ector/software/ector_software_buffer.c b/src/lib/ector/software/ector_software_buffer.c
index 376228f5c8..b846761de1 100644
--- a/src/lib/ector/software/ector_software_buffer.c
+++ b/src/lib/ector/software/ector_software_buffer.c
@@ -166,9 +166,7 @@ _ector_software_buffer_base_ector_generic_buffer_map(Eo *obj EINA_UNUSED, Ector_
166 166
167 if (!pd->pixels.u8 || !pd->stride) 167 if (!pd->pixels.u8 || !pd->stride)
168 fail("Buffer has no pixel data yet"); 168 fail("Buffer has no pixel data yet");
169 if (cspace != pd->generic->cspace) 169 if (((x + w) > pd->generic->w) || (y + h > pd->generic->h))
170 fail("Invalid colorspace");
171 if (!w || !h || ((x + w) > pd->generic->w) || (y + h > pd->generic->h))
172 fail("Invalid region requested: wanted %u,%u %ux%u but image is %ux%u", 170 fail("Invalid region requested: wanted %u,%u %ux%u but image is %ux%u",
173 x, y, w, h, pd->generic->w, pd->generic->h); 171 x, y, w, h, pd->generic->w, pd->generic->h);
174 if ((mode & ECTOR_BUFFER_ACCESS_FLAG_WRITE) && !pd->writable) 172 if ((mode & ECTOR_BUFFER_ACCESS_FLAG_WRITE) && !pd->writable)