Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4ed37e03
Commit
4ed37e03
authored
Apr 27, 2005
by
Raphael Junqueira
Committed by
Alexandre Julliard
Apr 27, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash on drawStridedSlow.
parent
039869ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drawprim.c
dlls/d3d8/drawprim.c
+2
-2
No files found.
dlls/d3d8/drawprim.c
View file @
4ed37e03
...
@@ -1050,8 +1050,6 @@ void drawStridedSlow(LPDIRECT3DDEVICE8 iface, Direct3DVertexStridedData *sd,
...
@@ -1050,8 +1050,6 @@ void drawStridedSlow(LPDIRECT3DDEVICE8 iface, Direct3DVertexStridedData *sd,
if
(
This
->
StateBlock
->
textures
[
textureNo
]
!=
NULL
)
{
if
(
This
->
StateBlock
->
textures
[
textureNo
]
!=
NULL
)
{
int
coordIdx
=
This
->
UpdateStateBlock
->
texture_state
[
textureNo
][
D3DTSS_TEXCOORDINDEX
];
int
coordIdx
=
This
->
UpdateStateBlock
->
texture_state
[
textureNo
][
D3DTSS_TEXCOORDINDEX
];
float
*
ptrToCoords
=
(
float
*
)(
sd
->
u
.
s
.
texCoords
[
coordIdx
].
lpData
+
(
SkipnStrides
*
sd
->
u
.
s
.
texCoords
[
coordIdx
].
dwStride
));
float
s
=
0
.
0
,
t
=
0
.
0
,
r
=
0
.
0
,
q
=
0
.
0
;
if
(
coordIdx
>
7
)
{
if
(
coordIdx
>
7
)
{
VTRACE
((
"tex: %d - Skip tex coords, as being system generated
\n
"
,
textureNo
));
VTRACE
((
"tex: %d - Skip tex coords, as being system generated
\n
"
,
textureNo
));
...
@@ -1061,7 +1059,9 @@ void drawStridedSlow(LPDIRECT3DDEVICE8 iface, Direct3DVertexStridedData *sd,
...
@@ -1061,7 +1059,9 @@ void drawStridedSlow(LPDIRECT3DDEVICE8 iface, Direct3DVertexStridedData *sd,
continue
;
continue
;
}
else
{
}
else
{
float
*
ptrToCoords
=
(
float
*
)
(
sd
->
u
.
s
.
texCoords
[
coordIdx
].
lpData
+
(
SkipnStrides
*
sd
->
u
.
s
.
texCoords
[
coordIdx
].
dwStride
));
int
coordsToUse
=
sd
->
u
.
s
.
texCoords
[
coordIdx
].
dwType
+
1
;
/* 0 == D3DVSDT_FLOAT1 etc */
int
coordsToUse
=
sd
->
u
.
s
.
texCoords
[
coordIdx
].
dwType
+
1
;
/* 0 == D3DVSDT_FLOAT1 etc */
float
s
=
0
.
0
,
t
=
0
.
0
,
r
=
0
.
0
,
q
=
0
.
0
;
/* The coords to supply depend completely on the fvf / vertex shader */
/* The coords to supply depend completely on the fvf / vertex shader */
switch
(
coordsToUse
)
{
switch
(
coordsToUse
)
{
...
...
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