Windows: Fix build with QT_NO_OPENGL
Fixes compiler breakage introduced in 39e06078258393f. Change-Id: I39813018915a70b848ca9377089e262952715545 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
parent
f01c5cdb8d
commit
21c8385105
@ -956,10 +956,12 @@ void QWindowsWindow::destroyWindow()
|
|||||||
if (hasMouseCapture())
|
if (hasMouseCapture())
|
||||||
setMouseGrabEnabled(false);
|
setMouseGrabEnabled(false);
|
||||||
setDropSiteEnabled(false);
|
setDropSiteEnabled(false);
|
||||||
|
#ifndef QT_NO_OPENGL
|
||||||
if (m_surface) {
|
if (m_surface) {
|
||||||
m_data.staticOpenGLContext->destroyWindowSurface(m_surface);
|
m_data.staticOpenGLContext->destroyWindowSurface(m_surface);
|
||||||
m_surface = 0;
|
m_surface = 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#ifdef Q_OS_WINCE
|
#ifdef Q_OS_WINCE
|
||||||
if ((m_windowState & Qt::WindowFullScreen) && !m_previouslyHidden) {
|
if ((m_windowState & Qt::WindowFullScreen) && !m_previouslyHidden) {
|
||||||
HWND handle = FindWindow(L"HHTaskBar", L"");
|
HWND handle = FindWindow(L"HHTaskBar", L"");
|
||||||
@ -2287,10 +2289,14 @@ void QWindowsWindow::setCustomMargins(const QMargins &newCustomMargins)
|
|||||||
|
|
||||||
void *QWindowsWindow::surface(void *nativeConfig)
|
void *QWindowsWindow::surface(void *nativeConfig)
|
||||||
{
|
{
|
||||||
|
#ifdef QT_NO_OPENGL
|
||||||
|
return 0;
|
||||||
|
#else
|
||||||
if (!m_surface)
|
if (!m_surface)
|
||||||
m_surface = m_data.staticOpenGLContext->createWindowSurface(m_data.hwnd, nativeConfig);
|
m_surface = m_data.staticOpenGLContext->createWindowSurface(m_data.hwnd, nativeConfig);
|
||||||
|
|
||||||
return m_surface;
|
return m_surface;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user