History

Fix OpenGL on Vulkan branch

ksuprynowicz committed 1 year ago

Commit fe160b91 parent ded928f17 files · +80 −27Browse files

Showing the changes to interface/src/Application_Graphics.cpp (1 of 17 files). Show all

Unified · Split

interface/src/Application_Graphics.cpp+4−0
@@ -78,7 +78,11 @@ void Application::initializeGL() { · 77 unmodified lines
7878 _isGLInitialized = true;
7979 }
8080
81+#ifdef USE_GL
82+ _primaryWidget->windowHandle()->setFormat(getDefaultOpenGLSurfaceFormat());
83+#else
8184 //_primaryWidget->windowHandle()->setFormat(getDefaultOpenGLSurfaceFormat()); // VKTODO
85+#endif
8286
8387 // When loading QtWebEngineWidgets, it creates a global share context on startup.
8488 // We have to account for this possibility by checking here for an existing

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t