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
60317d02
Commit
60317d02
authored
Jun 17, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Avoid some unneeded rendertarget copies.
parent
8be02077
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
drawprim.c
dlls/wined3d/drawprim.c
+8
-2
No files found.
dlls/wined3d/drawprim.c
View file @
60317d02
...
...
@@ -554,16 +554,22 @@ void drawPrimitive(IWineD3DDevice *iface, UINT index_count, UINT numberOfVertice
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DSurfaceImpl
*
target
;
BOOL
load_rt
,
modify_rt
;
unsigned
int
i
;
if
(
!
index_count
)
return
;
load_rt
=
This
->
stateBlock
->
renderState
[
WINED3DRS_COLORWRITEENABLE
]
||
This
->
stateBlock
->
renderState
[
WINED3DRS_ALPHATESTENABLE
]
||
This
->
stateBlock
->
renderState
[
WINED3DRS_COLORKEYENABLE
];
modify_rt
=
This
->
stateBlock
->
renderState
[
WINED3DRS_COLORWRITEENABLE
];
/* Invalidate the back buffer memory so LockRect will read it the next time */
for
(
i
=
0
;
i
<
GL_LIMITS
(
buffers
);
i
++
)
{
target
=
(
IWineD3DSurfaceImpl
*
)
This
->
render_targets
[
i
];
if
(
target
)
{
IWineD3DSurface_LoadLocation
((
IWineD3DSurface
*
)
target
,
SFLAG_INDRAWABLE
,
NULL
);
IWineD3DSurface_ModifyLocation
((
IWineD3DSurface
*
)
target
,
SFLAG_INDRAWABLE
,
TRUE
);
if
(
load_rt
)
IWineD3DSurface_LoadLocation
((
IWineD3DSurface
*
)
target
,
SFLAG_INDRAWABLE
,
NULL
);
if
(
modify_rt
)
IWineD3DSurface_ModifyLocation
((
IWineD3DSurface
*
)
target
,
SFLAG_INDRAWABLE
,
TRUE
);
}
}
...
...
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