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
39d6e30d
Commit
39d6e30d
authored
Nov 07, 2005
by
Oliver Stieber
Committed by
Alexandre Julliard
Nov 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent SetFVF from clearing down the vertex declaration of the FVF is
zero. This is required for Prince of Persia, The sands of time.
parent
0ede610c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
device.c
dlls/wined3d/device.c
+10
-6
No files found.
dlls/wined3d/device.c
View file @
39d6e30d
...
...
@@ -1650,6 +1650,7 @@ UINT WINAPI IWineD3DDeviceImpl_GetAvailableTextureMem(IWineD3DDevice *iface) {
*****/
HRESULT
WINAPI
IWineD3DDeviceImpl_SetFVF
(
IWineD3DDevice
*
iface
,
DWORD
fvf
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
HRESULT
hr
=
D3D_OK
;
/* Update the current state block */
This
->
updateStateBlock
->
fvf
=
fvf
;
...
...
@@ -1657,13 +1658,16 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetFVF(IWineD3DDevice *iface, DWORD fvf) {
This
->
updateStateBlock
->
set
.
fvf
=
TRUE
;
TRACE
(
"(%p) : FVF Shader FVF set to %lx
\n
"
,
This
,
fvf
);
/* clear down the vertex declaration
NOTE: Axis and Allies doesn't work properly otherwise
(may be a stateblock problem though!)
*/
/* No difference if recording or not */
return
IWineD3DDevice_SetVertexDeclaration
(
iface
,
NULL
);
if
(
0
!=
fvf
)
{
/* clear down the vertex declaration
NOTE: Axis and Allies doesn't work properly otherwise
(may be a stateblock problem though!)
*/
hr
=
IWineD3DDevice_SetVertexDeclaration
(
iface
,
NULL
);
}
return
hr
;
}
...
...
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