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
aced8de8
Commit
aced8de8
authored
Jan 03, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Jan 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Skip WINED3DTSS_TEXCOORDINDEX state application for stages that aren't…
wined3d: Skip WINED3DTSS_TEXCOORDINDEX state application for stages that aren't mapped to a texture unit.
parent
c7fad607
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
state.c
dlls/wined3d/state.c
+7
-2
No files found.
dlls/wined3d/state.c
View file @
aced8de8
...
@@ -1499,13 +1499,18 @@ static void transform_texture(DWORD state, IWineD3DStateBlockImpl *stateblock) {
...
@@ -1499,13 +1499,18 @@ static void transform_texture(DWORD state, IWineD3DStateBlockImpl *stateblock) {
static
void
tex_coordindex
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
static
void
tex_coordindex
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
DWORD
stage
=
(
state
-
STATE_TEXTURESTAGE
(
0
,
0
))
/
WINED3D_HIGHEST_TEXTURE_STATE
;
DWORD
stage
=
(
state
-
STATE_TEXTURESTAGE
(
0
,
0
))
/
WINED3D_HIGHEST_TEXTURE_STATE
;
DWORD
mapped_stage
=
stateblock
->
wineD3DDevice
->
texUnitMap
[
stage
];
if
(
mapped_stage
==
-
1
)
{
TRACE
(
"No texture unit mapped to stage %d. Skipping texture coordinates.
\n
"
,
stage
);
return
;
}
if
(
GL_SUPPORT
(
ARB_MULTITEXTURE
))
{
if
(
GL_SUPPORT
(
ARB_MULTITEXTURE
))
{
/* TODO: register combiners! */
if
(
stage
>=
GL_LIMITS
(
sampler_stages
))
{
if
(
stage
>=
GL_LIMITS
(
sampler_stages
))
{
return
;
return
;
}
}
GL_EXTCALL
(
glActiveTextureARB
(
GL_TEXTURE0_ARB
+
stateblock
->
wineD3DDevice
->
texUnitMap
[
stage
]
));
GL_EXTCALL
(
glActiveTextureARB
(
GL_TEXTURE0_ARB
+
mapped_stage
));
checkGLcall
(
"glActiveTextureARB"
);
checkGLcall
(
"glActiveTextureARB"
);
}
else
if
(
stage
>
0
)
{
}
else
if
(
stage
>
0
)
{
/* We can't do anything here */
/* We can't do anything here */
...
...
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