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
bd6a6ad2
Commit
bd6a6ad2
authored
Dec 19, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move WINED3DTSS_ALPHAOP to the state table.
parent
762af471
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
18 deletions
+3
-18
device.c
dlls/wined3d/device.c
+3
-1
drawprim.c
dlls/wined3d/drawprim.c
+0
-17
state.c
dlls/wined3d/state.c
+0
-0
No files found.
dlls/wined3d/device.c
View file @
bd6a6ad2
...
...
@@ -4628,9 +4628,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetTexture(IWineD3DDevice *iface, DWORD
IWineD3DBaseTexture_AddRef
(
This
->
updateStateBlock
->
textures
[
Stage
]);
if
(
oldTexture
==
NULL
)
{
/* The source arguments for color and alpha ops have different meanings when a NULL texture is bound,
* so the COLOROP
has to be dirtified.(Alphaop is not in the state table yet)
* so the COLOROP
and ALPHAOP have to be dirtified.
*/
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_TEXTURESTAGE
(
Stage
,
WINED3DTSS_COLOROP
));
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_TEXTURESTAGE
(
Stage
,
WINED3DTSS_ALPHAOP
));
}
}
...
...
@@ -4638,6 +4639,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetTexture(IWineD3DDevice *iface, DWORD
IWineD3DBaseTexture_Release
(
oldTexture
);
if
(
pTexture
==
NULL
)
{
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_TEXTURESTAGE
(
Stage
,
WINED3DTSS_COLOROP
));
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_TEXTURESTAGE
(
Stage
,
WINED3DTSS_ALPHAOP
));
}
}
...
...
dlls/wined3d/drawprim.c
View file @
bd6a6ad2
...
...
@@ -1962,23 +1962,6 @@ static void drawPrimitiveUploadTextures(IWineD3DDeviceImpl* This) {
This
->
stateBlock
->
textureDimensions
[
i
]
=
GL_TEXTURE_1D
;
glBindTexture
(
GL_TEXTURE_1D
,
This
->
dummyTextureName
[
i
]);
}
/** these ops apply to the texture unit, so they are preserved between texture changes, but for now brute force and reapply all
dx9_1pass_emboss_bump_mapping and dx9_2pass_emboss_bump_mapping are good texts to make sure the states are being applied when needed **/
if
(
GL_SUPPORT
(
NV_REGISTER_COMBINERS
))
{
/* alphaop */
set_tex_op_nvrc
((
IWineD3DDevice
*
)
This
,
TRUE
,
i
,
This
->
stateBlock
->
textureState
[
i
][
WINED3DTSS_ALPHAOP
],
This
->
stateBlock
->
textureState
[
i
][
WINED3DTSS_ALPHAARG1
],
This
->
stateBlock
->
textureState
[
i
][
WINED3DTSS_ALPHAARG2
],
This
->
stateBlock
->
textureState
[
i
][
WINED3DTSS_ALPHAARG0
],
texture_idx
);
}
else
{
/* alphaop */
set_tex_op
((
IWineD3DDevice
*
)
This
,
TRUE
,
i
,
This
->
stateBlock
->
textureState
[
i
][
WINED3DTSS_ALPHAOP
],
This
->
stateBlock
->
textureState
[
i
][
WINED3DTSS_ALPHAARG1
],
This
->
stateBlock
->
textureState
[
i
][
WINED3DTSS_ALPHAARG2
],
This
->
stateBlock
->
textureState
[
i
][
WINED3DTSS_ALPHAARG0
]);
}
}
}
...
...
dlls/wined3d/state.c
View file @
bd6a6ad2
This diff is collapsed.
Click to expand it.
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