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
8311ff32
Commit
8311ff32
authored
Jun 12, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Jun 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Take the texUnitMap into account when loading shader_glsl_load_psamplers().
parent
2256e06d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
glsl_shader.c
dlls/wined3d/glsl_shader.c
+3
-2
No files found.
dlls/wined3d/glsl_shader.c
View file @
8311ff32
...
...
@@ -90,8 +90,9 @@ static void shader_glsl_load_psamplers(
snprintf
(
sampler_name
,
sizeof
(
sampler_name
),
"Psampler%d"
,
i
);
name_loc
=
GL_EXTCALL
(
glGetUniformLocationARB
(
programId
,
sampler_name
));
if
(
name_loc
!=
-
1
)
{
TRACE
(
"Loading %s for texture %d
\n
"
,
sampler_name
,
i
);
GL_EXTCALL
(
glUniform1iARB
(
name_loc
,
i
));
int
mapped_unit
=
stateBlock
->
wineD3DDevice
->
texUnitMap
[
i
];
TRACE
(
"Loading %s for texture %d
\n
"
,
sampler_name
,
mapped_unit
);
GL_EXTCALL
(
glUniform1iARB
(
name_loc
,
mapped_unit
));
checkGLcall
(
"glUniform1iARB"
);
}
}
...
...
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