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
93fefdf4
Commit
93fefdf4
authored
Jun 16, 2005
by
Oliver Stieber
Committed by
Alexandre Julliard
Jun 16, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable the creation of invalid vertex declarations in d3d9 preventing
some applications from crashing.
parent
27088716
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
vertexdeclaration.c
dlls/d3d9/vertexdeclaration.c
+7
-8
No files found.
dlls/d3d9/vertexdeclaration.c
View file @
93fefdf4
...
...
@@ -124,13 +124,11 @@ HRESULT WINAPI IDirect3DDevice9Impl_SetVertexDeclaration(LPDIRECT3DDEVICE9 ifa
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
IDirect3DVertexDeclaration9Impl
*
pDeclImpl
=
(
IDirect3DVertexDeclaration9Impl
*
)
pDecl
;
HRESULT
hr
=
S_OK
;
This
->
UpdateStateBlock
->
vertexDecl
=
NULL
;
/* TODO: implement stateblocks */
FIXME
(
"Disabled
\n
"
);
return
D3DERR_INVALIDCALL
;
if
(
NULL
!=
pDecl
)
{
hr
=
IWineD3DDevice_SetVertexDeclaration
(
This
->
WineD3DDevice
,
pDeclImpl
->
wineD3DVertexDeclaration
);
if
(
SUCCEEDED
(
hr
))
{
This
->
UpdateStateBlock
->
vertexDecl
=
(
IDirect3DVertexDeclaration9Impl
*
)
pDecl
;
}
}
return
hr
;
}
...
...
@@ -139,15 +137,16 @@ HRESULT WINAPI IDirect3DDevice9Impl_GetVertexDeclaration(LPDIRECT3DDEVICE9 ifa
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
IWineD3DVertexDeclaration
*
pTest
=
NULL
;
HRESULT
hr
=
S_OK
;
IDirect3DVertexDeclaration9Impl
*
pCur
=
This
->
StateBlock
->
vertexDecl
;
FIXME
(
"Disabled
\n
"
);
return
D3DERR_INVALIDCALL
;
if
(
NULL
==
ppDecl
)
{
return
D3DERR_INVALIDCALL
;
}
*
ppDecl
=
NULL
;
hr
=
IWineD3DDevice_GetVertexDeclaration
(
This
->
WineD3DDevice
,
&
pTest
);
if
(
SUCCEEDED
(
hr
)
&&
(
NULL
==
pCur
||
pCur
->
wineD3DVertexDeclaration
==
pTest
)
)
{
*
ppDecl
=
(
IDirect3DVertexDeclaration9
*
)
pCur
;
if
(
SUCCEEDED
(
hr
))
{
*
ppDecl
=
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