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
cae630f9
Commit
cae630f9
authored
Jan 06, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Jan 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: IDirect3DDevice8Impl_GetPixelShaderFunction gets passed a handle instead of a pointer.
parent
d159b332
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
device.c
dlls/d3d8/device.c
+11
-3
No files found.
dlls/d3d8/device.c
View file @
cae630f9
...
...
@@ -1450,10 +1450,18 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetPixelShaderConstant(LPDIRECT3DDEVI
}
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetPixelShaderFunction
(
LPDIRECT3DDEVICE8
iface
,
DWORD
pPixelShader
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
IDirect3DPixelShader8Impl
*
This
=
(
IDirect3DPixelShader8Impl
*
)
pPixelShader
;
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IDirect3DPixelShader8Impl
*
shader
=
NULL
;
TRACE
(
"(%p) : Relay
\n
"
,
This
);
return
IWineD3DPixelShader_GetFunction
(
This
->
wineD3DPixelShader
,
pData
,
(
UINT
*
)
pSizeOfData
);
TRACE
(
"(%p) : pPixelShader %#x, pData %p, pSizeOfData %p
\n
"
,
This
,
pPixelShader
,
pData
,
pSizeOfData
);
if
(
pPixelShader
<=
VS_HIGHESTFIXEDFXF
||
This
->
allocated_shader_handles
<=
pPixelShader
-
(
VS_HIGHESTFIXEDFXF
+
1
))
{
ERR
(
"Passed an invalid shader handle.
\n
"
);
return
D3DERR_INVALIDCALL
;
}
shader
=
This
->
shader_handles
[
pPixelShader
-
(
VS_HIGHESTFIXEDFXF
+
1
)];
return
IWineD3DPixelShader_GetFunction
(
shader
->
wineD3DPixelShader
,
pData
,
(
UINT
*
)
pSizeOfData
);
}
static
HRESULT
WINAPI
IDirect3DDevice8Impl_DrawRectPatch
(
LPDIRECT3DDEVICE8
iface
,
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
D3DRECTPATCH_INFO
*
pRectPatchInfo
)
{
...
...
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