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
dcc490e8
Commit
dcc490e8
authored
Jun 19, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't load a rendertarget just because alpha test is enabled.
Unlike the depth test, the alpha test doesn't compare to the existing fragment but against a reference value.
parent
a25947fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
drawprim.c
dlls/wined3d/drawprim.c
+11
-12
No files found.
dlls/wined3d/drawprim.c
View file @
dcc490e8
...
...
@@ -554,22 +554,21 @@ 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
)
{
if
(
load_rt
)
IWineD3DSurface_LoadLocation
((
IWineD3DSurface
*
)
target
,
SFLAG_INDRAWABLE
,
NULL
);
if
(
modify_rt
)
IWineD3DSurface_ModifyLocation
((
IWineD3DSurface
*
)
target
,
SFLAG_INDRAWABLE
,
TRUE
);
if
(
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
);
}
}
}
...
...
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