[Webkit-unassigned] [Bug 33959] Don't call vgGetError()/eglGetError() repeatedly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 21 10:58:23 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=33959





--- Comment #2 from Jakob Petsovits <jpetsovits at rim.com>  2010-01-21 10:58:23 PST ---
While changing the VG/EGL error macros to something that reviewer Niko liked
better, I introduced a bug in there. I thought I could be smart and get rid of
the temporary variable that holds the error code, and tested it with
eglGetError() on the OpenVG reference implementation to make sure it works.

Turns out that wasn't the best idea. On the one hand, vgGetError() turns out to
be specified differently than eglGetError() so it must only be called once in
any case. On the other hand, eglGetError() turns out to be so vaguely specified
that implementations and even EGL patron Khronos interprets the spec
inconsistently.

On a more positive note, if I hadn't introduced the bug in the first place, the
SurfaceOpenVG pbuffer constructor (and the related
EGLDisplayOpenVG::createPbufferSurface()) would have suffered from a subtle bug
which is being taken care of in this patch as well.

Please read the commit message too, and review. Thanks!

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list