Browse Source

Fix a typo; set pugl backend as stub if it ends up being null

pull/272/head
falkTX 4 years ago
parent
commit
94dee0ca4b
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      dgl/src/pugl.cpp

+ 3
- 1
dgl/src/pugl.cpp View File

@@ -182,9 +182,11 @@ void puglSetMatchingBackendForCurrentBuild(PuglView* const view)
#ifdef DGL_OPENGL
puglSetBackend(view, puglGlBackend());
#endif
#ifdef DGL_Vulkan
#ifdef DGL_VULKAN
puglSetBackend(view, puglVulkanBackend());
#endif
if (view->backend == nullptr)
puglSetBackend(view, puglStubBackend());
}

// --------------------------------------------------------------------------------------------------------------------


Loading…
Cancel
Save