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
c7fad607
Commit
c7fad607
authored
Jan 03, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Jan 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't do WINED3DTSS_ALPHAOP texture operations for stages that aren't…
wined3d: Don't do WINED3DTSS_ALPHAOP texture operations for stages that aren't mapped to a texture unit.
parent
8c530333
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
state.c
dlls/wined3d/state.c
+15
-13
No files found.
dlls/wined3d/state.c
View file @
c7fad607
...
...
@@ -1438,24 +1438,26 @@ static void tex_colorop(DWORD state, IWineD3DStateBlockImpl *stateblock) {
static
void
tex_alphaop
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
DWORD
stage
=
(
state
-
STATE_TEXTURESTAGE
(
0
,
0
))
/
WINED3D_HIGHEST_TEXTURE_STATE
;
DWORD
mapped_stage
=
stateblock
->
wineD3DDevice
->
texUnitMap
[
stage
];
TRACE
(
"Setting alpha op for stage %d
\n
"
,
stage
);
/* Do not care for enabled / disabled stages, just assign the settigns. colorop disables / enables required stuff */
if
(
GL_SUPPORT
(
ARB_MULTITEXTURE
))
{
/* TODO: register combiners! */
if
(
stage
>=
GL_LIMITS
(
sampler_stages
))
{
if
(
stateblock
->
textureState
[
stage
][
WINED3DTSS_COLOROP
]
!=
WINED3DTOP_DISABLE
&&
stateblock
->
textureState
[
stage
][
WINED3DTSS_COLOROP
]
!=
0
)
{
FIXME
(
"Attempt to enable unsupported stage!
\n
"
);
if
(
mapped_stage
!=
-
1
)
{
if
(
GL_SUPPORT
(
ARB_MULTITEXTURE
))
{
if
(
stage
>=
GL_LIMITS
(
sampler_stages
))
{
if
(
stateblock
->
textureState
[
stage
][
WINED3DTSS_COLOROP
]
!=
WINED3DTOP_DISABLE
&&
stateblock
->
textureState
[
stage
][
WINED3DTSS_COLOROP
]
!=
0
)
{
FIXME
(
"Attempt to enable unsupported stage!
\n
"
);
}
return
;
}
GL_EXTCALL
(
glActiveTextureARB
(
GL_TEXTURE0_ARB
+
mapped_stage
));
checkGLcall
(
"glActiveTextureARB"
);
}
else
if
(
stage
>
0
)
{
/* We can't do anything here */
WARN
(
"Program using multiple concurrent textures which this opengl implementation doesn't support
\n
"
);
return
;
}
GL_EXTCALL
(
glActiveTextureARB
(
GL_TEXTURE0_ARB
+
stateblock
->
wineD3DDevice
->
texUnitMap
[
stage
]));
checkGLcall
(
"glActiveTextureARB"
);
}
else
if
(
stage
>
0
)
{
/* We can't do anything here */
WARN
(
"Program using multiple concurrent textures which this opengl implementation doesn't support
\n
"
);
return
;
}
TRACE
(
"Setting alpha op for stage %d
\n
"
,
stage
);
...
...
@@ -1465,7 +1467,7 @@ static void tex_alphaop(DWORD state, IWineD3DStateBlockImpl *stateblock) {
stateblock
->
textureState
[
stage
][
WINED3DTSS_ALPHAARG1
],
stateblock
->
textureState
[
stage
][
WINED3DTSS_ALPHAARG2
],
stateblock
->
textureState
[
stage
][
WINED3DTSS_ALPHAARG0
],
stateblock
->
wineD3DDevice
->
texUnitMap
[
stage
]
);
mapped_stage
);
}
else
{
set_tex_op
((
IWineD3DDevice
*
)
stateblock
->
wineD3DDevice
,
TRUE
,
stage
,
stateblock
->
textureState
[
stage
][
WINED3DTSS_ALPHAOP
],
stateblock
->
textureState
[
stage
][
WINED3DTSS_ALPHAARG1
],
...
...
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