summaryrefslogtreecommitdiffstats
path: root/o3d/core/win/d3d9/renderer_d3d9.cc
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/core/win/d3d9/renderer_d3d9.cc')
-rw-r--r--o3d/core/win/d3d9/renderer_d3d9.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/o3d/core/win/d3d9/renderer_d3d9.cc b/o3d/core/win/d3d9/renderer_d3d9.cc
index 2e55ddd..fe36184 100644
--- a/o3d/core/win/d3d9/renderer_d3d9.cc
+++ b/o3d/core/win/d3d9/renderer_d3d9.cc
@@ -355,13 +355,7 @@ Renderer::InitStatus CreateDirect3D(Direct3DCreate9_Ptr d3d_create_function,
}
// Get the current monitor and adapter.
- *monitor = MonitorFromWindow(window, MONITOR_DEFAULTTONULL);
- if (*monitor == NULL) {
- DLOG(ERROR) << "Failed to get monitor from window";
- (*d3d)->Release();
- *d3d = NULL;
- return Renderer::INITIALIZATION_ERROR;
- }
+ *monitor = MonitorFromWindow(window, MONITOR_DEFAULTTOPRIMARY);
if (!GetAdapterFromMonitor(*d3d, *monitor, adapter)) {
DLOG(WARNING) << "Failed to get adapter, use the default one";
*adapter = D3DADAPTER_DEFAULT;