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
72046ad7
Commit
72046ad7
authored
May 27, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Always initialize out shader pointer in CreateDomainShader().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
1a869de1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
device.c
dlls/d3d11/device.c
+2
-0
d3d11.c
dlls/d3d11/tests/d3d11.c
+7
-0
No files found.
dlls/d3d11/device.c
View file @
72046ad7
...
...
@@ -3592,6 +3592,8 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CreateDomainShader(ID3D11Device2 *
TRACE
(
"iface %p, byte_code %p, byte_code_length %Iu, class_linkage %p, shader %p.
\n
"
,
iface
,
byte_code
,
byte_code_length
,
class_linkage
,
shader
);
*
shader
=
NULL
;
if
(
class_linkage
)
FIXME
(
"Class linkage is not implemented yet.
\n
"
);
...
...
dlls/d3d11/tests/d3d11.c
View file @
72046ad7
...
...
@@ -4824,6 +4824,7 @@ static void test_create_shader(const D3D_FEATURE_LEVEL feature_level)
ID3D11Device
*
device
,
*
tmp
;
ID3D11GeometryShader
*
gs
;
ID3D11VertexShader
*
vs
;
ID3D11DomainShader
*
ds
;
ID3D11PixelShader
*
ps
;
ID3D11HullShader
*
hs
;
HRESULT
hr
;
...
...
@@ -5007,6 +5008,12 @@ static void test_create_shader(const D3D_FEATURE_LEVEL feature_level)
ok
(
hr
==
E_INVALIDARG
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!
hs
,
"Unexpected pointer %p.
\n
"
,
hs
);
/* Domain shader */
ds
=
(
void
*
)
0xdeadbeef
;
hr
=
ID3D11Device_CreateDomainShader
(
device
,
gs_4_0
,
sizeof
(
gs_4_0
),
NULL
,
&
ds
);
ok
(
hr
==
E_INVALIDARG
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!
ds
,
"Unexpected pointer %p.
\n
"
,
ds
);
refcount
=
ID3D11Device_Release
(
device
);
ok
(
!
refcount
,
"Device has %lu references left.
\n
"
,
refcount
);
}
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