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
10ffa291
Commit
10ffa291
authored
Jun 22, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Jun 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove the sharing of mapping code for fixed function and pixel shader samplers.
parent
2aa891c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
device.c
dlls/wined3d/device.c
+14
-1
No files found.
dlls/wined3d/device.c
View file @
10ffa291
...
...
@@ -3214,6 +3214,19 @@ static void device_map_fixed_function_samplers(IWineD3DDeviceImpl *This) {
device_update_fixed_function_usage_map
(
This
);
if
(
This
->
stateBlock
->
lowest_disabled_stage
<=
GL_LIMITS
(
textures
))
{
for
(
i
=
0
;
i
<
MAX_SAMPLERS
;
++
i
)
{
if
(
This
->
texUnitMap
[
i
]
!=
i
)
{
device_map_stage
(
This
,
i
,
i
);
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_SAMPLER
(
i
));
if
(
i
<
MAX_TEXTURES
)
{
markTextureStagesDirty
(
This
,
i
);
}
}
}
return
;
}
/* No pixel shader, and we do not have enough texture units available. Try to skip NULL textures
* First, see if we can succeed at all
*/
...
...
@@ -3266,7 +3279,7 @@ void IWineD3DDeviceImpl_FindTexUnitMap(IWineD3DDeviceImpl *This) {
* -> Whith a 1:1 mapping oneToOneTexUnitMap is set to avoid checking MAX_SAMPLERS array
* entries to make pixel shaders cheaper. MAX_SAMPLERS will be 128 in dx10
*/
if
(
This
->
stateBlock
->
pixelShader
||
This
->
stateBlock
->
lowest_disabled_stage
<=
GL_LIMITS
(
textures
)
)
{
if
(
This
->
stateBlock
->
pixelShader
)
{
if
(
This
->
oneToOneTexUnitMap
)
{
TRACE
(
"Not touching 1:1 map
\n
"
);
return
;
...
...
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