Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ac265bf3
Commit
ac265bf3
authored
Feb 25, 2023
by
Giovanni Mascellani
Committed by
Alexandre Julliard
Mar 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Reset the back buffer index to zero on ResizeBuffers().
parent
dc2a2eaf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
swapchain.c
dlls/dxgi/swapchain.c
+2
-0
dxgi.c
dlls/dxgi/tests/dxgi.c
+0
-3
No files found.
dlls/dxgi/swapchain.c
View file @
ac265bf3
...
...
@@ -2249,6 +2249,8 @@ static HRESULT d3d12_swapchain_resize_buffers(struct d3d12_swapchain *swapchain,
if
(
!
dxgi_validate_swapchain_desc
(
&
new_desc
))
return
DXGI_ERROR_INVALID_CALL
;
swapchain
->
current_buffer_index
=
0
;
if
(
desc
->
Width
==
new_desc
.
Width
&&
desc
->
Height
==
new_desc
.
Height
&&
desc
->
Format
==
new_desc
.
Format
&&
desc
->
BufferCount
==
new_desc
.
BufferCount
)
return
S_OK
;
...
...
dlls/dxgi/tests/dxgi.c
View file @
ac265bf3
...
...
@@ -4988,7 +4988,6 @@ static void test_swapchain_backbuffer_index(IUnknown *device, BOOL is_d3d12)
{
index
=
IDXGISwapChain3_GetCurrentBackBufferIndex
(
swapchain3
);
expected_index
=
is_d3d12
?
j
%
swapchain_desc
.
BufferCount
:
0
;
todo_wine_if
(
is_d3d12
)
ok
(
index
==
expected_index
,
"Got back buffer index %u, expected %u.
\n
"
,
index
,
expected_index
);
hr
=
IDXGISwapChain3_Present
(
swapchain3
,
0
,
0
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
...
...
@@ -5003,7 +5002,6 @@ static void test_swapchain_backbuffer_index(IUnknown *device, BOOL is_d3d12)
{
index
=
IDXGISwapChain3_GetCurrentBackBufferIndex
(
swapchain3
);
expected_index
=
is_d3d12
?
j
%
swapchain_desc
.
BufferCount
:
0
;
todo_wine_if
(
is_d3d12
)
ok
(
index
==
expected_index
,
"Got back buffer index %u, expected %u.
\n
"
,
index
,
expected_index
);
hr
=
IDXGISwapChain3_Present
(
swapchain3
,
0
,
0
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
...
...
@@ -5017,7 +5015,6 @@ static void test_swapchain_backbuffer_index(IUnknown *device, BOOL is_d3d12)
{
index
=
IDXGISwapChain3_GetCurrentBackBufferIndex
(
swapchain3
);
expected_index
=
is_d3d12
?
j
%
swapchain_desc
.
BufferCount
:
0
;
todo_wine_if
(
is_d3d12
)
ok
(
index
==
expected_index
,
"Got back buffer index %u, expected %u.
\n
"
,
index
,
expected_index
);
hr
=
IDXGISwapChain3_Present
(
swapchain3
,
0
,
0
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment