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
b07c48c4
Commit
b07c48c4
authored
Jan 10, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Do not activate / deactivate texture dimensions twice.
parent
70831d1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
state.c
dlls/wined3d/state.c
+13
-6
No files found.
dlls/wined3d/state.c
View file @
b07c48c4
...
...
@@ -1440,7 +1440,12 @@ static void tex_colorop(DWORD state, IWineD3DStateBlockImpl *stateblock) {
return
;
}
if
(
mapped_stage
!=
-
1
)
activate_dimensions
(
stage
,
stateblock
);
/* The sampler will also activate the correct texture dimensions, so no need to do it here
* if the sampler for this stage is dirty
*/
if
(
!
isStateDirty
(
stateblock
->
wineD3DDevice
,
STATE_SAMPLER
(
stage
)))
{
if
(
mapped_stage
!=
-
1
)
activate_dimensions
(
stage
,
stateblock
);
}
/* Set the texture combiners */
if
(
GL_SUPPORT
(
NV_REGISTER_COMBINERS
))
{
...
...
@@ -1816,7 +1821,9 @@ static void sampler(DWORD state, IWineD3DStateBlockImpl *stateblock) {
glEnable
(
stateblock
->
textureDimensions
[
sampler
]);
checkGLcall
(
"glEnable(stateblock->textureDimensions[sampler])"
);
}
else
if
(
sampler
<
stateblock
->
lowest_disabled_stage
)
{
activate_dimensions
(
sampler
,
stateblock
);
if
(
!
isStateDirty
(
stateblock
->
wineD3DDevice
,
STATE_TEXTURESTAGE
(
sampler
,
WINED3DTSS_COLOROP
)))
{
activate_dimensions
(
sampler
,
stateblock
);
}
if
(
stateblock
->
renderState
[
WINED3DRS_COLORKEYENABLE
]
&&
sampler
==
0
)
{
/* If color keying is enabled update the alpha test, it depends on the existence
...
...
@@ -1827,10 +1834,10 @@ static void sampler(DWORD state, IWineD3DStateBlockImpl *stateblock) {
}
}
else
if
(
sampler
<
GL_LIMITS
(
texture_stages
))
{
if
(
sampler
<
stateblock
->
lowest_disabled_stage
)
{
/* TODO:
Check if the colorop is dirty to do that job
* TODO: What should I do with pixel shaders here ???
*/
activate_dimensions
(
sampler
,
stateblock
);
/* TODO:
What should I do with pixel shaders here ??? */
if
(
!
isStateDirty
(
stateblock
->
wineD3DDevice
,
STATE_TEXTURESTAGE
(
sampler
,
WINED3DTSS_COLOROP
)))
{
activate_dimensions
(
sampler
,
stateblock
);
}
}
/* Otherwise tex_colorop disables the stage */
glBindTexture
(
GL_TEXTURE_1D
,
stateblock
->
wineD3DDevice
->
dummyTextureName
[
sampler
]);
checkGLcall
(
"glBindTexture(GL_TEXTURE_1D, 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