summaryrefslogtreecommitdiffstats
path: root/examples/hello-world/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hello-world/main.cpp')
-rw-r--r--examples/hello-world/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/hello-world/main.cpp b/examples/hello-world/main.cpp
index 77ca8a978..959aa2881 100644
--- a/examples/hello-world/main.cpp
+++ b/examples/hello-world/main.cpp
@@ -33,7 +33,6 @@
// design choices in their abstraction layer.
//
#include "gfx/render.h"
-#include "gfx/d3d11/render-d3d11.h"
#include "tools/graphics-app-framework/window.h"
#include "slang-com-ptr.h"
#include "source/core/slang-basic.h"
@@ -261,7 +260,7 @@ Slang::Result initialize()
// A future version of this example may support multiple
// platforms/APIs.
//
- createD3D11Renderer(gRenderer.writeRef());
+ gfxGetCreateFunc(gfx::RendererType::DirectX11)(gRenderer.writeRef());
IRenderer::Desc rendererDesc;
rendererDesc.width = gWindowWidth;
rendererDesc.height = gWindowHeight;