diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2009-09-08 12:30:19 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-09-22 06:09:46 (GMT) |
commit | 835a8e53d93f71fee0c73c3e02f73a4a01215d60 (patch) | |
tree | fc04bcbc084c1a721ee22dea356c7f6e3b00189c /src/opengl/qglextensions.cpp | |
parent | a66826ed79203d1d665089eae4133921872a4532 (diff) | |
download | Qt-835a8e53d93f71fee0c73c3e02f73a4a01215d60.zip Qt-835a8e53d93f71fee0c73c3e02f73a4a01215d60.tar.gz Qt-835a8e53d93f71fee0c73c3e02f73a4a01215d60.tar.bz2 |
Resubmit support for subpixel antialiasing on text in the GL2 engine.
The antialiasing is currently not gamma corrected and is disabled on
OpenGL ES 2.0.
Reviewed-by: Samuel
Diffstat (limited to 'src/opengl/qglextensions.cpp')
-rw-r--r-- | src/opengl/qglextensions.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opengl/qglextensions.cpp b/src/opengl/qglextensions.cpp index 3699d62..c785d8a 100644 --- a/src/opengl/qglextensions.cpp +++ b/src/opengl/qglextensions.cpp @@ -391,8 +391,9 @@ bool qt_resolve_version_2_0_functions(QGLContext *ctx) if (glStencilOpSeparate) return gl2supported; + glBlendColor = (_glBlendColor) ctx->getProcAddress(QLatin1String("glBlendColor")); glStencilOpSeparate = (_glStencilOpSeparate) ctx->getProcAddress(QLatin1String("glStencilOpSeparate")); - if (!glStencilOpSeparate) + if (!glBlendColor || !glStencilOpSeparate) gl2supported = false; return gl2supported; |