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
15f91b4a
Commit
15f91b4a
authored
Jan 06, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Do not keep internal references to the vertex declaration.
parent
fdb62cba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
17 deletions
+0
-17
device.c
dlls/wined3d/device.c
+0
-6
stateblock.c
dlls/wined3d/stateblock.c
+0
-11
No files found.
dlls/wined3d/device.c
View file @
15f91b4a
...
...
@@ -3239,12 +3239,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetVertexDeclaration(IWineD3DDevice* if
return
WINED3D_OK
;
}
if
(
NULL
!=
pDecl
)
{
IWineD3DVertexDeclaration_AddRef
(
pDecl
);
}
if
(
NULL
!=
oldDecl
)
{
IWineD3DVertexDeclaration_Release
(
oldDecl
);
}
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_VDECL
);
return
WINED3D_OK
;
}
...
...
dlls/wined3d/stateblock.c
View file @
15f91b4a
...
...
@@ -254,10 +254,6 @@ static ULONG WINAPI IWineD3DStateBlockImpl_Release(IWineD3DStateBlock *iface) {
IWineD3DVertexShader_Release
(
This
->
vertexShader
);
}
if
(
NULL
!=
This
->
vertexDecl
)
{
IWineD3DVertexDeclaration_Release
(
This
->
vertexDecl
);
}
/* NOTE: according to MSDN: The application is responsible for making sure the texture references are cleared down */
for
(
counter
=
0
;
counter
<
GL_LIMITS
(
sampler_stages
);
counter
++
)
{
if
(
This
->
textures
[
counter
])
{
...
...
@@ -502,13 +498,6 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_Capture(IWineD3DStateBlock *iface)
if
(
This
->
set
.
vertexDecl
&&
This
->
vertexDecl
!=
targetStateBlock
->
vertexDecl
){
TRACE
(
"Updating vertex declaration from %p to %p
\n
"
,
This
->
vertexDecl
,
targetStateBlock
->
vertexDecl
);
if
(
targetStateBlock
->
vertexDecl
)
{
IWineD3DVertexDeclaration_AddRef
(
targetStateBlock
->
vertexDecl
);
}
if
(
This
->
vertexDecl
)
{
IWineD3DVertexDeclaration_Release
(
This
->
vertexDecl
);
}
This
->
vertexDecl
=
targetStateBlock
->
vertexDecl
;
}
...
...
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