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
acc893c5
Commit
acc893c5
authored
Aug 21, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Handle projected+bump mapped textures in atifs.
parent
46353156
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
ati_fragment_shader.c
dlls/wined3d/ati_fragment_shader.c
+8
-3
No files found.
dlls/wined3d/ati_fragment_shader.c
View file @
acc893c5
...
...
@@ -312,11 +312,16 @@ static GLuint gen_ati_shader(struct texture_stage_op op[MAX_TEXTURES], WineD3D_G
GL_EXTCALL
(
glSampleMapATI
(
GL_REG_0_ATI
+
stage
,
GL_TEXTURE0_ARB
+
stage
,
GL_SWIZZLE_STR_ATI
));
TRACE
(
"glPassTexCoordATI(GL_REG_%d_ATI, GL_TEXTURE_%d_ARB, GL_SWIZZLE_STR_ATI)
\n
"
,
stage
+
1
,
stage
+
1
);
if
(
op
[
stage
+
1
].
projected
==
proj_none
)
{
swizzle
=
GL_SWIZZLE_STR_ATI
;
}
else
{
swizzle
=
GL_SWIZZLE_STQ_DQ_ATI
;
}
TRACE
(
"glPassTexCoordATI(GL_REG_%d_ATI, GL_TEXTURE_%d_ARB, %s)
\n
"
,
stage
+
1
,
stage
+
1
,
debug_swizzle
(
swizzle
));
GL_EXTCALL
(
glPassTexCoordATI
(
GL_REG_0_ATI
+
stage
+
1
,
GL_TEXTURE0_ARB
+
stage
+
1
,
GL_SWIZZLE_STR_ATI
));
swizzle
));
/* We need GL_REG_5_ATI as a temporary register to swizzle the bump matrix. So we run into
* issues if we're bump mapping on stage 4 or 5
...
...
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