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
c885524c
Commit
c885524c
authored
Jul 18, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Correctly check for sysmem index buffers in d3d9_stateblock_Apply().
This fixes a regression introduced by
66f37aae
. Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53372
parent
90183850
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
stateblock.c
dlls/d3d9/stateblock.c
+5
-4
No files found.
dlls/d3d9/stateblock.c
View file @
c885524c
...
@@ -113,9 +113,10 @@ static HRESULT WINAPI d3d9_stateblock_Capture(IDirect3DStateBlock9 *iface)
...
@@ -113,9 +113,10 @@ static HRESULT WINAPI d3d9_stateblock_Capture(IDirect3DStateBlock9 *iface)
static
HRESULT
WINAPI
d3d9_stateblock_Apply
(
IDirect3DStateBlock9
*
iface
)
static
HRESULT
WINAPI
d3d9_stateblock_Apply
(
IDirect3DStateBlock9
*
iface
)
{
{
struct
d3d9_stateblock
*
stateblock
=
impl_from_IDirect3DStateBlock9
(
iface
);
struct
d3d9_stateblock
*
stateblock
=
impl_from_IDirect3DStateBlock9
(
iface
);
struct
d3d9_vertexbuffer
*
vertex_buffer
;
struct
wined3d_texture
*
wined3d_texture
;
struct
wined3d_texture
*
wined3d_texture
;
struct
d3d9_indexbuffer
*
index_buffer
;
struct
wined3d_buffer
*
wined3d_buffer
;
struct
wined3d_buffer
*
wined3d_buffer
;
struct
d3d9_vertexbuffer
*
buffer
;
struct
d3d9_texture
*
texture
;
struct
d3d9_texture
*
texture
;
struct
d3d9_device
*
device
;
struct
d3d9_device
*
device
;
unsigned
int
i
;
unsigned
int
i
;
...
@@ -136,13 +137,13 @@ static HRESULT WINAPI d3d9_stateblock_Apply(IDirect3DStateBlock9 *iface)
...
@@ -136,13 +137,13 @@ static HRESULT WINAPI d3d9_stateblock_Apply(IDirect3DStateBlock9 *iface)
{
{
if
(
!
(
wined3d_buffer
=
device
->
stateblock_state
->
streams
[
i
].
buffer
))
if
(
!
(
wined3d_buffer
=
device
->
stateblock_state
->
streams
[
i
].
buffer
))
continue
;
continue
;
if
(
!
(
buffer
=
wined3d_buffer_get_parent
(
wined3d_buffer
)))
if
(
!
(
vertex_
buffer
=
wined3d_buffer_get_parent
(
wined3d_buffer
)))
continue
;
continue
;
if
(
buffer
->
draw_buffer
)
if
(
vertex_
buffer
->
draw_buffer
)
device
->
sysmem_vb
|=
1u
<<
i
;
device
->
sysmem_vb
|=
1u
<<
i
;
}
}
device
->
sysmem_ib
=
(
wined3d_buffer
=
device
->
stateblock_state
->
index_buffer
)
device
->
sysmem_ib
=
(
wined3d_buffer
=
device
->
stateblock_state
->
index_buffer
)
&&
(
buffer
=
wined3d_buffer_get_parent
(
wined3d_buffer
))
&&
buffer
->
draw_buffer
;
&&
(
index_buffer
=
wined3d_buffer_get_parent
(
wined3d_buffer
))
&&
index_buffer
->
sysmem
;
device
->
auto_mipmaps
=
0
;
device
->
auto_mipmaps
=
0
;
for
(
i
=
0
;
i
<
D3D9_MAX_TEXTURE_UNITS
;
++
i
)
for
(
i
=
0
;
i
<
D3D9_MAX_TEXTURE_UNITS
;
++
i
)
{
{
...
...
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