Browse Source

obs-qsv11: Remove old DX9 code

This code was left over from a previous cleanup. We currently only use
DX11_D3D surfaces on Windows.
Ryan Foster 11 months ago
parent
commit
bce98b607a
1 changed files with 5 additions and 7 deletions
  1. 5 7
      plugins/obs-qsv11/common_utils_windows.cpp

+ 5 - 7
plugins/obs-qsv11/common_utils_windows.cpp

@@ -1,10 +1,8 @@
 #include "common_utils.h"
 
-// ATTENTION: If D3D surfaces are used, DX9_D3D or DX11_D3D must be set in project settings or hardcoded here
+// ATTENTION: If D3D surfaces are used, DX11_D3D must be set in project settings or hardcoded here
 
-#ifdef DX9_D3D
-#include "common_directx.h"
-#elif DX11_D3D
+#ifdef DX11_D3D
 #include "common_directx11.h"
 #endif
 
@@ -129,7 +127,7 @@ mfxStatus Initialize(mfxVersion ver, mfxSession *pSession, mfxFrameAllocator *pm
 
 void Release()
 {
-#if defined(DX9_D3D) || defined(DX11_D3D)
+#if defined(DX11_D3D)
 	CleanupHWDevice();
 #endif
 }
@@ -241,14 +239,14 @@ fail:
 #if 0
 void ClearYUVSurfaceVMem(mfxMemId memId)
 {
-#if defined(DX9_D3D) || defined(DX11_D3D)
+#if defined(DX11_D3D)
     ClearYUVSurfaceD3D(memId);
 #endif
 }
 
 void ClearRGBSurfaceVMem(mfxMemId memId)
 {
-#if defined(DX9_D3D) || defined(DX11_D3D)
+#if defined(DX11_D3D)
     ClearRGBSurfaceD3D(memId);
 #endif
 }