Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fc5f36f0
Commit
fc5f36f0
authored
Mar 08, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Mar 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix IWineD3DPixelShader_GetFunction / IWineD3DVertexShader_GetFunction.
parent
b68c72fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
pixelshader.c
dlls/wined3d/pixelshader.c
+4
-2
vertexshader.c
dlls/wined3d/vertexshader.c
+4
-2
No files found.
dlls/wined3d/pixelshader.c
View file @
fc5f36f0
...
...
@@ -127,8 +127,10 @@ static HRESULT WINAPI IWineD3DPixelShaderImpl_GetFunction(IWineD3DPixelShader*
return
WINED3D_OK
;
}
if
(
*
pSizeOfData
<
This
->
baseShader
.
functionLength
)
{
*
pSizeOfData
=
This
->
baseShader
.
functionLength
;
return
WINED3DERR_MOREDATA
;
/* MSDN claims (for d3d8 at least) that if *pSizeOfData is smaller
* than the required size we should write the required size and
* return D3DERR_MOREDATA. That's not actually true. */
return
WINED3DERR_INVALIDCALL
;
}
if
(
NULL
==
This
->
baseShader
.
function
)
{
/* no function defined */
TRACE
(
"(%p) : GetFunction no User Function defined using NULL to %p
\n
"
,
This
,
pData
);
...
...
dlls/wined3d/vertexshader.c
View file @
fc5f36f0
...
...
@@ -521,8 +521,10 @@ static HRESULT WINAPI IWineD3DVertexShaderImpl_GetFunction(IWineD3DVertexShader*
return
WINED3D_OK
;
}
if
(
*
pSizeOfData
<
This
->
baseShader
.
functionLength
)
{
*
pSizeOfData
=
This
->
baseShader
.
functionLength
;
return
WINED3DERR_MOREDATA
;
/* MSDN claims (for d3d8 at least) that if *pSizeOfData is smaller
* than the required size we should write the required size and
* return D3DERR_MOREDATA. That's not actually true. */
return
WINED3DERR_INVALIDCALL
;
}
if
(
NULL
==
This
->
baseShader
.
function
)
{
/* no function defined */
TRACE
(
"(%p) : GetFunction no User Function defined using NULL to %p
\n
"
,
This
,
pData
);
...
...
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