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
957474f2
Commit
957474f2
authored
Dec 25, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Dec 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Skip NULL textures rather than non-NULL ones, assign -1 to skipped stages.
Downgrade a FIXME to a WARN.
parent
49f5ee74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
device.c
dlls/wined3d/device.c
+13
-2
No files found.
dlls/wined3d/device.c
View file @
957474f2
...
...
@@ -3735,15 +3735,26 @@ static void IWineD3DDeviceImpl_FindTexUnitMap(IWineD3DDeviceImpl *This) {
/* Now work out the mapping */
tex
=
0
;
This
->
oneToOneTexUnitMap
=
FALSE
;
FIXME
(
"Non 1:1 mapping UNTESTED!
\n
"
);
WARN
(
"Non 1:1 mapping UNTESTED!
\n
"
);
for
(
i
=
0
;
i
<
This
->
stateBlock
->
lowest_disabled_stage
;
i
++
)
{
if
(
This
->
stateBlock
->
textures
[
i
]
==
NULL
)
tex
++
;
/* Skip NULL textures */
if
(
!
This
->
stateBlock
->
textures
[
i
])
{
/* Map to -1, so the check below doesn't fail if a non-NULL
* texture is set on this stage */
TRACE
(
"Mapping texture stage %d to -1
\n
"
,
i
);
This
->
texUnitMap
[
i
]
=
-
1
;
continue
;
}
TRACE
(
"Mapping texture stage %d to unit %d
\n
"
,
i
,
tex
);
if
(
This
->
texUnitMap
[
i
]
!=
tex
)
{
This
->
texUnitMap
[
i
]
=
tex
;
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_SAMPLER
(
i
));
markTextureStagesDirty
(
This
,
i
);
}
++
tex
;
}
}
}
...
...
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