Commit Graph

6 Commits

Author SHA1 Message Date
Hajime Hoshi
29b41fd07f internal/graphicsdriver/directx: bug fix: ignore DXGI_STATUS_OCCLUDED
When a screen is locked, an Ebitengine application crashed as the
swap chain's Present returned DXGI_STATUS_OCCLUDED.

Let's ignore the error and continue to run the applications. In the
ideal world, an application should stop running during the screen lock,
so let's revisit this later.

This fix also fixes the issue that a Win32API GetCursorPos returned
an error ERROR_ACCESS_DENIED when the screen was locked.

Closes #2179
2022-07-04 13:00:12 +09:00
Hajime Hoshi
c82371dfcb internal/graphicsdriver/directx: bug fix: disable fullscreen by Alt+Enter
By default, DirectX 12 tries to make the window fullscreen by Alt+Enter.
This caused application crashes. Let's disable this feature.

Closes #2123
2022-06-05 16:18:30 +09:00
Hajime Hoshi
b3ddeb6456 Revert "internal/graphicsdriver/directx: bug fix: ID3D12Resource::Map sometimes needs retrying"
This reverts commit a9afacc8c6.

Reason: The true culprit was #2117. #2116 was not a bug.

Updates #2116
Updates #2117
2022-06-04 01:12:35 +09:00
Hajime Hoshi
a9afacc8c6 internal/graphicsdriver/directx: bug fix: ID3D12Resource::Map sometimes needs retrying
Updates #2113
Closes #2116
2022-06-03 22:04:18 +09:00
Hajime Hoshi
dbb8067761 internal/graphicsdriver/directx: bug fix: ID3D12Resource::Unmap does not return an value
Updates #2113
Closes #2115
2022-06-02 12:56:48 +09:00
Hajime Hoshi
79e93d3b12 internal/graphicsdriver: introduce the DirectX driver
Closes #1007
2022-03-26 20:09:34 +09:00