diff options
author | Jason Barron <jason.barron@nokia.com> | 2010-09-27 08:54:38 (GMT) |
---|---|---|
committer | Jason Barron <jason.barron@nokia.com> | 2010-10-07 07:22:26 (GMT) |
commit | 83567e2dd93ad46cff2b3b611e298148e7d60f62 (patch) | |
tree | 068f9c89a35502d5f473b28c565215305a3edf84 /src/declarative/graphicsitems/qdeclarativepath_p.h | |
parent | 45134e5dda238e42b89a407464911ac05f214cac (diff) | |
download | Qt-83567e2dd93ad46cff2b3b611e298148e7d60f62.zip Qt-83567e2dd93ad46cff2b3b611e298148e7d60f62.tar.gz Qt-83567e2dd93ad46cff2b3b611e298148e7d60f62.tar.bz2 |
Minor OpenVG optimization when setting the EGL surface attribute.
Calling eglGetError() is expensive so we should avoid doing it unless
we know there actually is an error. The function returns EGL_FALSE upon
error so we can test for that instead of using eglGetError().
Reviewed-by: Jani Hautakangas
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativepath_p.h')
0 files changed, 0 insertions, 0 deletions