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
85023281
Commit
85023281
authored
Aug 24, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Properly check if an attribute is used in loadTexCoords().
parent
e48350a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
state.c
dlls/wined3d/state.c
+3
-3
No files found.
dlls/wined3d/state.c
View file @
85023281
...
...
@@ -3140,14 +3140,14 @@ static void loadTexCoords(const struct wined3d_context *context, IWineD3DStateBl
for
(
textureNo
=
0
;
textureNo
<
GL_LIMITS
(
texture_stages
);
++
textureNo
)
{
int
coordIdx
=
stateblock
->
textureState
[
textureNo
][
WINED3DTSS_TEXCOORDINDEX
];
const
struct
wined3d_stream_info_element
*
e
;
mapped_stage
=
stateblock
->
wineD3DDevice
->
texUnitMap
[
textureNo
];
if
(
mapped_stage
==
WINED3D_UNMAPPED_STAGE
)
continue
;
e
=
&
si
->
elements
[
WINED3D_FFP_TEXCOORD0
+
coordIdx
];
if
(
coordIdx
<
MAX_TEXTURES
&&
(
e
->
data
||
e
->
buffer_object
))
if
(
coordIdx
<
MAX_TEXTURES
&&
(
si
->
use_map
&
(
1
<<
(
WINED3D_FFP_TEXCOORD0
+
coordIdx
))))
{
const
struct
wined3d_stream_info_element
*
e
=
&
si
->
elements
[
WINED3D_FFP_TEXCOORD0
+
coordIdx
];
TRACE
(
"Setting up texture %u, idx %d, cordindx %u, data %p
\n
"
,
textureNo
,
mapped_stage
,
coordIdx
,
e
->
data
);
...
...
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