Avoid asserting with QQuickWidget on Windows
Change-Id: I8b4185a9725b27b3e3e0e049e3a001ed61bcf1d5 Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
This commit is contained in:
parent
ed5e75cf5b
commit
4c9d767f6e
@ -1050,7 +1050,7 @@ bool QWindowsGLContext::makeCurrent(QPlatformSurface *surface)
|
||||
qCDebug(lcQpaGl) << __FUNCTION__ << this << m_windowContexts.size() << "contexts";
|
||||
#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?
|
||||
QWindowsWindow *window = static_cast<QWindowsWindow *>(surface);
|
||||
|
Loading…
Reference in New Issue
Block a user