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
8da71ca6
Commit
8da71ca6
authored
Dec 29, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Use separate codepaths for failure and NULL return values in…
d3d9: Use separate codepaths for failure and NULL return values in GetVertexShader() / GetPixelShader().
parent
6f5af404
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
10 deletions
+29
-10
pixelshader.c
dlls/d3d9/pixelshader.c
+15
-5
vertexshader.c
dlls/d3d9/vertexshader.c
+14
-5
No files found.
dlls/d3d9/pixelshader.c
View file @
8da71ca6
...
...
@@ -170,11 +170,21 @@ HRESULT WINAPI IDirect3DDevice9Impl_GetPixelShader(LPDIRECT3DDEVICE9EX iface, ID
EnterCriticalSection
(
&
d3d9_cs
);
hrc
=
IWineD3DDevice_GetPixelShader
(
This
->
WineD3DDevice
,
&
object
);
if
(
hrc
==
D3D_OK
&&
object
!=
NULL
)
{
hrc
=
IWineD3DPixelShader_GetParent
(
object
,
(
IUnknown
**
)
ppShader
);
IWineD3DPixelShader_Release
(
object
);
}
else
{
*
ppShader
=
NULL
;
if
(
SUCCEEDED
(
hrc
))
{
if
(
object
)
{
hrc
=
IWineD3DPixelShader_GetParent
(
object
,
(
IUnknown
**
)
ppShader
);
IWineD3DPixelShader_Release
(
object
);
}
else
{
*
ppShader
=
NULL
;
}
}
else
{
WARN
(
"(%p) : Call to IWineD3DDevice_GetPixelShader failed %u (device %p)
\n
"
,
This
,
hrc
,
This
->
WineD3DDevice
);
}
LeaveCriticalSection
(
&
d3d9_cs
);
...
...
dlls/d3d9/vertexshader.c
View file @
8da71ca6
...
...
@@ -166,11 +166,20 @@ HRESULT WINAPI IDirect3DDevice9Impl_GetVertexShader(LPDIRECT3DDEVICE9EX iface, I
TRACE
(
"(%p) : Relay device@%p
\n
"
,
This
,
This
->
WineD3DDevice
);
EnterCriticalSection
(
&
d3d9_cs
);
hrc
=
IWineD3DDevice_GetVertexShader
(
This
->
WineD3DDevice
,
&
pShader
);
if
(
hrc
==
D3D_OK
&&
pShader
!=
NULL
){
hrc
=
IWineD3DVertexShader_GetParent
(
pShader
,
(
IUnknown
**
)
ppShader
);
IWineD3DVertexShader_Release
(
pShader
);
}
else
{
*
ppShader
=
NULL
;
if
(
SUCCEEDED
(
hrc
))
{
if
(
pShader
)
{
hrc
=
IWineD3DVertexShader_GetParent
(
pShader
,
(
IUnknown
**
)
ppShader
);
IWineD3DVertexShader_Release
(
pShader
);
}
else
{
*
ppShader
=
NULL
;
}
}
else
{
WARN
(
"(%p) : Call to IWineD3DDevice_GetVertexShader failed %u (device %p)
\n
"
,
This
,
hrc
,
This
->
WineD3DDevice
);
}
LeaveCriticalSection
(
&
d3d9_cs
);
...
...
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