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
1a869de1
Commit
1a869de1
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 CreateHullShader().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
3dd9a78a
Hide 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 @
1a869de1
...
...
@@ -3569,6 +3569,8 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CreateHullShader(ID3D11Device2 *if
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 @
1a869de1
...
...
@@ -4825,6 +4825,7 @@ static void test_create_shader(const D3D_FEATURE_LEVEL feature_level)
ID3D11GeometryShader
*
gs
;
ID3D11VertexShader
*
vs
;
ID3D11PixelShader
*
ps
;
ID3D11HullShader
*
hs
;
HRESULT
hr
;
device_desc
.
feature_level
=
&
feature_level
;
...
...
@@ -5000,6 +5001,12 @@ static void test_create_shader(const D3D_FEATURE_LEVEL feature_level)
ID3D11GeometryShader_Release
(
gs
);
}
/* Hull shader */
hs
=
(
void
*
)
0xdeadbeef
;
hr
=
ID3D11Device_CreateHullShader
(
device
,
gs_4_0
,
sizeof
(
gs_4_0
),
NULL
,
&
hs
);
ok
(
hr
==
E_INVALIDARG
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!
hs
,
"Unexpected pointer %p.
\n
"
,
hs
);
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