Remove unneeded check.

It would have already crashed on
QOpenGLSharedResource(ctx->shareGroup()).

Change-Id: Ib68759457a0fa7e4417dcd30cc40fbabf3df232c
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
Sergio Martins 2012-03-10 18:28:40 +00:00 committed by Qt by Nokia
parent 11eed81ae9
commit d8e6350c16

View File

@ -72,7 +72,7 @@ public:
, m_width(0)
, m_height(0)
{
if (ctx && !ctx->d_func()->workaround_brokenFBOReadBack)
if (!ctx->d_func()->workaround_brokenFBOReadBack)
QOpenGLFunctions(ctx).glGenFramebuffers(1, &m_fbo);
#ifdef QT_GL_TEXTURE_GLYPH_CACHE_DEBUG