summaryrefslogtreecommitdiff
path: root/tools/gfx/d3d11/d3d11-device.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/d3d11/d3d11-device.cpp')
-rw-r--r--tools/gfx/d3d11/d3d11-device.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/gfx/d3d11/d3d11-device.cpp b/tools/gfx/d3d11/d3d11-device.cpp
index 4ab26725e..c10a608dc 100644
--- a/tools/gfx/d3d11/d3d11-device.cpp
+++ b/tools/gfx/d3d11/d3d11-device.cpp
@@ -47,11 +47,7 @@ SlangResult DeviceImpl::initialize(const Desc& desc)
// Rather than statically link against D3D, we load it dynamically.
SharedLibrary::Handle d3dModule;
-#if SLANG_ENABLE_DXVK
- const char* libName = "dxvk_d3d11";
-#else
- const char* libName = "d3d11";
-#endif
+ const char* libName = SLANG_ENABLE_DXVK ? "dxvk_d3d11" : "d3d11";
if (SLANG_FAILED(SharedLibrary::load(libName, d3dModule)))
{
fprintf(stderr, "error: failed to load '%s'\n", libName);