Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/win/AppWin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ AppWin::AppWin(Settings settings, Config config)
Platform::instance().set_gpu_driver(gpu_driver_.get());
} else {
gpu_context_.reset();
// CPU fallback
surface_factory_.reset(new DIBSurfaceFactory(GetDC(0)));
Platform::instance().set_surface_factory(surface_factory_.get());
}
#elif defined(DRIVER_D3D12)
gpu_context_.reset(new GPUContextD3D12());
Expand Down
1 change: 1 addition & 0 deletions src/win/d3d11/GPUContextD3D11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ GPUContextD3D11::GPUContextD3D11() {
// Failed to create D3D11 device, fallback to CPU renderer
immediate_context_.Reset();
device_.Reset();
return;
}

// Create Enabled Blend State
Expand Down