Mercurial > MadButterfly
comparison 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 |
comparison
equal
deleted
inserted
replaced
613:6a0be737a3f3 | 614:9c5705da2495 |
---|---|
578 r = eglQuerySurface(display, canvas->tgt, EGL_WIDTH, &w); | 578 r = eglQuerySurface(display, canvas->tgt, EGL_WIDTH, &w); |
579 ASSERT(r == EGL_TRUE); | 579 ASSERT(r == EGL_TRUE); |
580 r = eglQuerySurface(display, canvas->tgt, EGL_HEIGHT, &h); | 580 r = eglQuerySurface(display, canvas->tgt, EGL_HEIGHT, &h); |
581 ASSERT(r == EGL_TRUE); | 581 ASSERT(r == EGL_TRUE); |
582 | 582 |
583 /* disable scissoring and identity transform matrix */ | 583 /* |
584 * Disable scissoring and identity transform matrix. | |
585 * | |
586 * Transform matrix from path to surface is assigned by | |
587 * mbe_transform(). Here, we temporary set it to identity, and | |
588 * restore it after paint. | |
589 */ | |
584 vgSeti(VG_SCISSORING, VG_FALSE); | 590 vgSeti(VG_SCISSORING, VG_FALSE); |
585 vgSeti(VG_MATRIX_MODE, VG_MATRIX_PATH_USER_TO_SURFACE); | 591 vgSeti(VG_MATRIX_MODE, VG_MATRIX_PATH_USER_TO_SURFACE); |
586 vgLoadIdentity(); | 592 vgLoadIdentity(); |
587 | 593 |
588 path = vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F, | 594 path = vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F, |