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
51b675ef
Commit
51b675ef
authored
Mar 31, 2024
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 01, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1/effect: Use a helper internally instead of IsShaderLoaded().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
43ce2bf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
effect.c
dlls/d2d1/effect.c
+3
-3
No files found.
dlls/d2d1/effect.c
View file @
51b675ef
...
...
@@ -813,7 +813,7 @@ static HRESULT STDMETHODCALLTYPE d2d_effect_context_LoadPixelShader(ID2D1EffectC
TRACE
(
"iface %p, shader_id %s, buffer %p, buffer_size %u.
\n
"
,
iface
,
debugstr_guid
(
shader_id
),
buffer
,
buffer_size
);
if
(
ID2D1EffectContext_IsShaderLoaded
(
ifa
ce
,
shader_id
))
if
(
d2d_device_is_shader_loaded
(
effect_context
->
device_context
->
devi
ce
,
shader_id
))
return
S_OK
;
if
(
FAILED
(
hr
=
ID3D11Device1_CreatePixelShader
(
effect_context
->
device_context
->
d3d_device
,
...
...
@@ -839,7 +839,7 @@ static HRESULT STDMETHODCALLTYPE d2d_effect_context_LoadVertexShader(ID2D1Effect
TRACE
(
"iface %p, shader_id %s, buffer %p, buffer_size %u.
\n
"
,
iface
,
debugstr_guid
(
shader_id
),
buffer
,
buffer_size
);
if
(
ID2D1EffectContext_IsShaderLoaded
(
ifa
ce
,
shader_id
))
if
(
d2d_device_is_shader_loaded
(
effect_context
->
device_context
->
devi
ce
,
shader_id
))
return
S_OK
;
if
(
FAILED
(
hr
=
ID3D11Device1_CreateVertexShader
(
effect_context
->
device_context
->
d3d_device
,
...
...
@@ -865,7 +865,7 @@ static HRESULT STDMETHODCALLTYPE d2d_effect_context_LoadComputeShader(ID2D1Effec
TRACE
(
"iface %p, shader_id %s, buffer %p, buffer_size %u.
\n
"
,
iface
,
debugstr_guid
(
shader_id
),
buffer
,
buffer_size
);
if
(
ID2D1EffectContext_IsShaderLoaded
(
ifa
ce
,
shader_id
))
if
(
d2d_device_is_shader_loaded
(
effect_context
->
device_context
->
devi
ce
,
shader_id
))
return
S_OK
;
if
(
FAILED
(
hr
=
ID3D11Device1_CreateComputeShader
(
effect_context
->
device_context
->
d3d_device
,
...
...
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