Avoid asserting with QQuickWidget on Windows

Change-Id: I8b4185a9725b27b3e3e0e049e3a001ed61bcf1d5
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
This commit is contained in:
Laszlo Agocs 2014-03-07 12:07:25 +01:00 committed by The Qt Project
parent ed5e75cf5b
commit 4c9d767f6e

View File

@ -1050,7 +1050,7 @@ bool QWindowsGLContext::makeCurrent(QPlatformSurface *surface)
qCDebug(lcQpaGl) << __FUNCTION__ << this << m_windowContexts.size() << "contexts"; qCDebug(lcQpaGl) << __FUNCTION__ << this << m_windowContexts.size() << "contexts";
#endif // DEBUG_GL #endif // DEBUG_GL
Q_ASSERT(surface->surface()->surfaceType() == QSurface::OpenGLSurface); Q_ASSERT(surface->surface()->supportsOpenGL());
// Do we already have a DC entry for that window? // Do we already have a DC entry for that window?
QWindowsWindow *window = static_cast<QWindowsWindow *>(surface); QWindowsWindow *window = static_cast<QWindowsWindow *>(surface);