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
27c98fd6
Commit
27c98fd6
authored
Dec 27, 2007
by
Alexander Dorofeyev
Committed by
Alexandre Julliard
Dec 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Also update alpha test when stage texture is NULL.
parent
5624948c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
state.c
dlls/wined3d/state.c
+7
-0
No files found.
dlls/wined3d/state.c
View file @
27c98fd6
...
...
@@ -2421,6 +2421,13 @@ static void sampler(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DCont
if
(
!
isStateDirty
(
context
,
STATE_TEXTURESTAGE
(
sampler
,
WINED3DTSS_COLOROP
)))
{
activate_dimensions
(
sampler
,
stateblock
,
context
);
}
if
(
stateblock
->
renderState
[
WINED3DRS_COLORKEYENABLE
]
&&
sampler
==
0
)
{
/* If color keying is enabled update the alpha test, it depends on the existence
* of a color key in stage 0
*/
state_alpha
(
WINED3DRS_COLORKEYENABLE
,
stateblock
,
context
);
}
}
/* Otherwise tex_colorop disables the stage */
glBindTexture
(
GL_TEXTURE_2D
,
stateblock
->
wineD3DDevice
->
dummyTextureName
[
sampler
]);
checkGLcall
(
"glBindTexture(GL_TEXTURE_2D, stateblock->wineD3DDevice->dummyTextureName[sampler])"
);
...
...
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