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
b9193cc9
Commit
b9193cc9
authored
Feb 06, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Feb 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Release the correct vertexdeclaration in
IWineD3DDeviceImpl_SetVertexDeclaration.
parent
fe7f2bad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
device.c
dlls/wined3d/device.c
+3
-2
No files found.
dlls/wined3d/device.c
View file @
b9193cc9
...
...
@@ -3773,6 +3773,7 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetScissorRect(IWineD3DDevice *iface, RECT* pR
HRESULT
WINAPI
IWineD3DDeviceImpl_SetVertexDeclaration
(
IWineD3DDevice
*
iface
,
IWineD3DVertexDeclaration
*
pDecl
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DVertexDeclaration
*
oldDecl
=
This
->
updateStateBlock
->
vertexDecl
;
TRACE
(
"(%p) : pDecl=%p
\n
"
,
This
,
pDecl
);
...
...
@@ -3787,8 +3788,8 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetVertexDeclaration(IWineD3DDevice* iface, IW
if
(
NULL
!=
pDecl
)
{
IWineD3DVertexDeclaration_AddRef
(
pDecl
);
}
if
(
NULL
!=
This
->
updateStateBlock
->
vertex
Decl
)
{
IWineD3DVertexDeclaration_Release
(
This
->
updateStateBlock
->
vertex
Decl
);
if
(
NULL
!=
old
Decl
)
{
IWineD3DVertexDeclaration_Release
(
old
Decl
);
}
return
D3D_OK
;
}
...
...
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