summaryrefslogtreecommitdiffstats
path: root/gfx/layers/d3d9/DeviceManagerD3D9.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-05-04 20:49:56 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-05-06 19:14:17 +0200
commite008deb88bc6768fd6e85dc0d8d77973a8f83f50 (patch)
treeaddf4b63fc0ee0a95a330e01a2a6c99e7c90f4e0 /gfx/layers/d3d9/DeviceManagerD3D9.cpp
parent56cb90a482737ae5252ac8b7ccbc0aff0b309410 (diff)
downloadUXP-e008deb88bc6768fd6e85dc0d8d77973a8f83f50.tar
UXP-e008deb88bc6768fd6e85dc0d8d77973a8f83f50.tar.gz
UXP-e008deb88bc6768fd6e85dc0d8d77973a8f83f50.tar.lz
UXP-e008deb88bc6768fd6e85dc0d8d77973a8f83f50.tar.xz
UXP-e008deb88bc6768fd6e85dc0d8d77973a8f83f50.zip
Issue #1450 - Remove NVidia 3D-Vision utils
Legacy, unmaintained and untested D3D9 stereo output behind a hidden pref that nobody ever uses... :P 'nuf said. Resolves #1450
Diffstat (limited to 'gfx/layers/d3d9/DeviceManagerD3D9.cpp')
-rw-r--r--gfx/layers/d3d9/DeviceManagerD3D9.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/gfx/layers/d3d9/DeviceManagerD3D9.cpp b/gfx/layers/d3d9/DeviceManagerD3D9.cpp
index 09778bc9c..5aa0e9825 100644
--- a/gfx/layers/d3d9/DeviceManagerD3D9.cpp
+++ b/gfx/layers/d3d9/DeviceManagerD3D9.cpp
@@ -8,7 +8,6 @@
#include "nsIServiceManager.h"
#include "nsIConsoleService.h"
#include "nsPrintfCString.h"
-#include "Nv3DVUtils.h"
#include "plstr.h"
#include <algorithm>
#include "gfx2DGlue.h"
@@ -263,21 +262,6 @@ DeviceManagerD3D9::Initialize()
return false;
}
- if (gfxPrefs::StereoVideoEnabled()) {
- /* Create an Nv3DVUtils instance */
- if (!mNv3DVUtils) {
- mNv3DVUtils = new Nv3DVUtils();
- if (!mNv3DVUtils) {
- NS_WARNING("Could not create a new instance of Nv3DVUtils.");
- }
- }
-
- /* Initialize the Nv3DVUtils object */
- if (mNv3DVUtils) {
- mNv3DVUtils->Initialize();
- }
- }
-
HMODULE d3d9 = LoadLibraryW(L"d3d9.dll");
decltype(Direct3DCreate9)* d3d9Create = (decltype(Direct3DCreate9)*)
GetProcAddress(d3d9, "Direct3DCreate9");
@@ -385,14 +369,6 @@ DeviceManagerD3D9::Initialize()
/*
* Do some post device creation setup
*/
- if (mNv3DVUtils) {
- IUnknown* devUnknown = nullptr;
- if (mDevice) {
- mDevice->QueryInterface(IID_IUnknown, (void **)&devUnknown);
- }
- mNv3DVUtils->SetDeviceInfo(devUnknown);
- }
-
auto failCreateShaderMsg = "[D3D9] failed to create a critical resource (shader) code";
hr = mDevice->CreateVertexShader((DWORD*)LayerQuadVS,