summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_texture.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_texture.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_texture.c b/src/modules/evas/engines/gl_common/evas_gl_texture.c
index f2451c3c5f..f0eb72264b 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_texture.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c
@@ -946,11 +946,10 @@ void
946pt_unref(Evas_GL_Texture_Pool *pt) 946pt_unref(Evas_GL_Texture_Pool *pt)
947{ 947{
948 if (!pt) return; 948 if (!pt) return;
949 if (!pt->gc) return;
950 pt->references--; 949 pt->references--;
951 if (pt->references != 0) return; 950 if (pt->references != 0) return;
952 951
953 if (!((pt->render) || (pt->native))) 952 if ((pt->gc) && !((pt->render) || (pt->native)))
954 { 953 {
955 if (pt->whole) 954 if (pt->whole)
956 pt->gc->shared->tex.whole = 955 pt->gc->shared->tex.whole =