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
c6515ab3
Commit
c6515ab3
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: Update refcounts when storing references in IWineD3DStateBlockImpl_Capture.
Move TRACEs to the top of their code blocks.
parent
b9193cc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
stateblock.c
dlls/wined3d/stateblock.c
+27
-2
No files found.
dlls/wined3d/stateblock.c
View file @
c6515ab3
...
...
@@ -148,8 +148,16 @@ HRESULT WINAPI IWineD3DStateBlockImpl_Capture(IWineD3DStateBlock *iface){
/* Recorded => Only update 'changed' values */
if
(
This
->
vertexShader
!=
targetStateBlock
->
vertexShader
)
{
TRACE
(
"Updating vertex shader from %p to %p
\n
"
,
This
->
vertexShader
,
targetStateBlock
->
vertexShader
);
if
(
targetStateBlock
->
vertexShader
)
{
IWineD3DVertexShader_AddRef
(
targetStateBlock
->
vertexShader
);
}
if
(
This
->
vertexShader
)
{
IWineD3DVertexShader_Release
(
This
->
vertexShader
);
}
This
->
vertexShader
=
targetStateBlock
->
vertexShader
;
TRACE
(
"Updating vertex shader to %p
\n
"
,
targetStateBlock
->
vertexShader
);
}
/* Vertex Shader Constants */
...
...
@@ -204,8 +212,16 @@ HRESULT WINAPI IWineD3DStateBlockImpl_Capture(IWineD3DStateBlock *iface){
/* Recorded => Only update 'changed' values */
if
(
This
->
pixelShader
!=
targetStateBlock
->
pixelShader
)
{
TRACE
(
"Updating pixel shader from %p to %p
\n
"
,
This
->
pixelShader
,
targetStateBlock
->
pixelShader
);
if
(
targetStateBlock
->
pixelShader
)
{
IWineD3DPixelShader_AddRef
(
targetStateBlock
->
pixelShader
);
}
if
(
This
->
pixelShader
)
{
IWineD3DPixelShader_Release
(
This
->
pixelShader
);
}
This
->
pixelShader
=
targetStateBlock
->
pixelShader
;
TRACE
(
"Updating pixrl shader to %p
\n
"
,
targetStateBlock
->
pixelShader
);
}
/* Pixel Shader Constants */
...
...
@@ -244,6 +260,15 @@ 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