Showing the changes to interface/src/graphics/GraphicsEngine.cpp (1 of 1 file). Show all
Unified · Split
| @@ -57,7 +57,11 @@ void GraphicsEngine::initializeGPU(GLWidget* glwidget) { · 56 unmodified lines | |||
| 57 | // and the GPU backend will make things like the VAO which cannot be shared across | 57 | // and the GPU backend will make things like the VAO which cannot be shared across |
| 58 | // contexts | 58 | // contexts |
| 59 | glwidget->makeCurrent(); | 59 | glwidget->makeCurrent(); |
| 60 | #ifdef USE_GL | ||
| 60 | gpu::Context::init<gpu::gl::GLBackend>(); | 61 | gpu::Context::init<gpu::gl::GLBackend>(); |
| 62 | #else | ||
| 63 | gpu::Context::init<gpu::vulkan::VKBackend>(); | ||
| 64 | #endif | ||
| 61 | glwidget->makeCurrent(); | 65 | glwidget->makeCurrent(); |
| 62 | _gpuContext = std::make_shared<gpu::Context>(); | 66 | _gpuContext = std::make_shared<gpu::Context>(); |
| 63 | 67 | ||