Showing the changes to interface/src/Application_Graphics.cpp (1 of 17 files). Show all
Unified · Split
| @@ -78,7 +78,11 @@ void Application::initializeGL() { · 77 unmodified lines | |||
| 78 | _isGLInitialized = true; | 78 | _isGLInitialized = true; |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | #ifdef USE_GL | ||
| 82 | _primaryWidget->windowHandle()->setFormat(getDefaultOpenGLSurfaceFormat()); | ||
| 83 | #else | ||
| 81 | //_primaryWidget->windowHandle()->setFormat(getDefaultOpenGLSurfaceFormat()); // VKTODO | 84 | //_primaryWidget->windowHandle()->setFormat(getDefaultOpenGLSurfaceFormat()); // VKTODO |
| 85 | #endif | ||
| 82 | 86 | ||
| 83 | // When loading QtWebEngineWidgets, it creates a global share context on startup. | 87 | // When loading QtWebEngineWidgets, it creates a global share context on startup. |
| 84 | // We have to account for this possibility by checking here for an existing | 88 | // We have to account for this possibility by checking here for an existing |