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
370b8299
Commit
370b8299
authored
Jul 22, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Honor the texcoordindex when setting the texture matrix.
parent
b554cdbb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
state.c
dlls/wined3d/state.c
+4
-2
No files found.
dlls/wined3d/state.c
View file @
370b8299
...
...
@@ -3108,6 +3108,7 @@ static void transform_texture(DWORD state, IWineD3DStateBlockImpl *stateblock, W
DWORD
texUnit
=
state
-
STATE_TRANSFORM
(
WINED3DTS_TEXTURE0
);
DWORD
mapped_stage
=
stateblock
->
wineD3DDevice
->
texUnitMap
[
texUnit
];
BOOL
generated
;
int
coordIdx
;
/* Ignore this when a vertex shader is used, or if the streams aren't sorted out yet */
if
(
use_vs
(
stateblock
->
wineD3DDevice
)
||
...
...
@@ -3130,13 +3131,14 @@ static void transform_texture(DWORD state, IWineD3DStateBlockImpl *stateblock, W
return
;
}
generated
=
(
stateblock
->
textureState
[
texUnit
][
WINED3DTSS_TEXCOORDINDEX
]
&
0xFFFF0000
)
!=
WINED3DTSS_TCI_PASSTHRU
;
coordIdx
=
min
(
stateblock
->
textureState
[
texUnit
][
WINED3DTSS_TEXCOORDINDEX
&
0x0000FFFF
],
MAX_TEXTURES
-
1
);
set_texture_matrix
(
&
stateblock
->
transforms
[
WINED3DTS_TEXTURE0
+
texUnit
].
u
.
m
[
0
][
0
],
stateblock
->
textureState
[
texUnit
][
WINED3DTSS_TEXTURETRANSFORMFLAGS
],
generated
,
context
->
last_was_rhw
,
stateblock
->
wineD3DDevice
->
strided_streams
.
u
.
s
.
texCoords
[
texUnit
].
dwStride
?
stateblock
->
wineD3DDevice
->
strided_streams
.
u
.
s
.
texCoords
[
texUnit
].
dwType
:
stateblock
->
wineD3DDevice
->
strided_streams
.
u
.
s
.
texCoords
[
coordIdx
].
dwStride
?
stateblock
->
wineD3DDevice
->
strided_streams
.
u
.
s
.
texCoords
[
coordIdx
].
dwType
:
WINED3DDECLTYPE_UNUSED
);
/* The sampler applying function calls us if this changes */
...
...
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