evas: only check references ifndef EVAS_CSERVE

We only check the value of references if EVAS_CSERVE isn't defined, so
no need to define it or assign it if EVAS_CSERVE isn't defined.

SVN revision: 67304
This commit is contained in:
Sebastian Dransfeld 2012-01-18 23:33:54 +00:00
parent 26de65cf2c
commit 45f0dcbd45
1 changed files with 2 additions and 2 deletions

View File

@ -937,11 +937,12 @@ evas_cache_image_dirty(Image_Entry *im, unsigned int x, unsigned int y, unsigned
{
Image_Entry *im_dirty = im;
Evas_Cache_Image *cache;
int references;
cache = im->cache;
if (!(im->flags.dirty))
{
#ifndef EVAS_CSERVE
int references;
#ifdef EVAS_FRAME_QUEUING
LKL(im->lock_references);
#endif
@ -949,7 +950,6 @@ evas_cache_image_dirty(Image_Entry *im, unsigned int x, unsigned int y, unsigned
#ifdef EVAS_FRAME_QUEUING
LKU(im->lock_references);
#endif
#ifndef EVAS_CSERVE
// if ref 1 also copy if using shared cache as its read-only
if (references == 1) im_dirty = im;
else