diff src/graph_engine_openvg.c @ 614:9c5705da2495 openvg

Fix the bug of foregting make current context before seting transform
author Thinker K.F. Li <thinker@branda.to>
date Wed, 07 Jul 2010 23:19:57 +0800
parents 6a0be737a3f3
children 7d70a811829b
line wrap: on
line diff
--- a/src/graph_engine_openvg.c	Wed Jul 07 21:55:05 2010 +0800
+++ b/src/graph_engine_openvg.c	Wed Jul 07 23:19:57 2010 +0800
@@ -580,7 +580,13 @@
     r = eglQuerySurface(display, canvas->tgt, EGL_HEIGHT, &h);
     ASSERT(r == EGL_TRUE);
 
-    /* disable scissoring and identity transform matrix */
+    /*
+     * Disable scissoring and identity transform matrix.
+     *
+     * Transform matrix from path to surface is assigned by
+     * mbe_transform().  Here, we temporary set it to identity, and
+     * restore it after paint.
+     */
     vgSeti(VG_SCISSORING, VG_FALSE);
     vgSeti(VG_MATRIX_MODE, VG_MATRIX_PATH_USER_TO_SURFACE);
     vgLoadIdentity();