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
1b2f56e6
Commit
1b2f56e6
authored
Jul 30, 2003
by
Lionel Ulmer
Committed by
Alexandre Julliard
Jul 30, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the TEXCOORDINDEX code.
parent
8297fec7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+3
-3
No files found.
dlls/ddraw/d3ddevice/mesa.c
View file @
1b2f56e6
...
...
@@ -1197,9 +1197,9 @@ inline static void handle_diffuse_and_specular(STATEBLOCK *sb, BYTE *fog_table,
inline
static
void
handle_texture
(
D3DVALUE
*
coords
)
{
glTexCoord2fv
(
coords
);
}
inline
static
void
handle_textures
(
D3DVALUE
*
coords
,
int
tex_
index
)
{
inline
static
void
handle_textures
(
D3DVALUE
*
coords
,
int
tex_
stage
)
{
/* For the moment, draw only the first texture.. */
if
(
tex_
index
==
0
)
glTexCoord2fv
(
coords
);
if
(
tex_
stage
==
0
)
glTexCoord2fv
(
coords
);
}
static
void
draw_primitive_strided
(
IDirect3DDeviceImpl
*
This
,
...
...
@@ -1335,7 +1335,7 @@ static void draw_primitive_strided(IDirect3DDeviceImpl *This,
}
for
(
tex_stage
=
0
;
tex_stage
<
num_active_stages
;
tex_stage
++
)
{
int
tex_index
=
This
->
state_block
.
texture_stage_state
[
tex_stage
][
D3DTSS_TEXCOORDINDEX
-
1
]
&
0x
FFFF0000
;
int
tex_index
=
This
->
state_block
.
texture_stage_state
[
tex_stage
][
D3DTSS_TEXCOORDINDEX
-
1
]
&
0x
0000FFFF
;
if
(
tex_index
>=
num_tex_index
)
{
handle_textures
((
D3DVALUE
*
)
no_index
,
tex_stage
);
}
else
{
...
...
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