From 10a55d8fa21591e3ac783e05f9b542e7b42f1c4c Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 8 Feb 2021 17:49:45 -0500 Subject: DX12 & NVAPI fixes (#1695) * #include an absolute path didn't work - because paths were taken to always be relative. * Fix bugs with m_features on Dx12 and gl. Fix issue about GFX_NVAPI availability. * Fix handling of SLANG_E_NOT_AVAILABLE on renderer startup. * Clarify comment. * Improve comment. --- tools/gfx/d3d12/render-d3d12.cpp | 3 +-- tools/gfx/open-gl/render-gl.cpp | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'tools/gfx') diff --git a/tools/gfx/d3d12/render-d3d12.cpp b/tools/gfx/d3d12/render-d3d12.cpp index 0ab07c262..2e1959bde 100644 --- a/tools/gfx/d3d12/render-d3d12.cpp +++ b/tools/gfx/d3d12/render-d3d12.cpp @@ -762,8 +762,6 @@ protected: HWND m_hwnd = nullptr; - List m_features; - bool m_nvapi = false; }; @@ -1471,6 +1469,7 @@ Result D3D12Renderer::initialize(const Desc& desc, void* inWindowHandle) m_nvapi = true; #endif + } // Find what features are supported diff --git a/tools/gfx/open-gl/render-gl.cpp b/tools/gfx/open-gl/render-gl.cpp index 03736cfa4..4251abe98 100644 --- a/tools/gfx/open-gl/render-gl.cpp +++ b/tools/gfx/open-gl/render-gl.cpp @@ -470,8 +470,6 @@ public: Desc m_desc; - List m_features; - // Declare a function pointer for each OpenGL // extension function we need to load #define DECLARE_GL_EXTENSION_FUNC(NAME, TYPE) TYPE NAME; -- cgit v1.2.3