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
2daa16c9
Commit
2daa16c9
authored
Jun 18, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jun 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use base_vertex_index in drawStridedSlow, and only for indexed draws.
parent
0085689f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drawprim.c
dlls/wined3d/drawprim.c
+3
-3
No files found.
dlls/wined3d/drawprim.c
View file @
2daa16c9
...
...
@@ -75,7 +75,7 @@ static void drawStridedSlow(struct wined3d_device *device, const struct wined3d_
UINT
vx_index
;
const
struct
wined3d_state
*
state
=
&
device
->
stateBlock
->
state
;
const
struct
wined3d_stream_state
*
streams
=
state
->
streams
;
LONG
SkipnStrides
=
startIdx
+
state
->
load_base_vertex_index
;
LONG
SkipnStrides
=
startIdx
;
BOOL
pixelShader
=
use_ps
(
state
);
BOOL
specular_fog
=
FALSE
;
const
BYTE
*
texCoords
[
WINED3DDP_MAXTEXCOORD
];
...
...
@@ -230,9 +230,9 @@ static void drawStridedSlow(struct wined3d_device *device, const struct wined3d_
{
/* Indexed so work out the number of strides to skip */
if
(
idxSize
==
2
)
SkipnStrides
=
pIdxBufS
[
startIdx
+
vx_index
]
+
state
->
load_
base_vertex_index
;
SkipnStrides
=
pIdxBufS
[
startIdx
+
vx_index
]
+
state
->
base_vertex_index
;
else
SkipnStrides
=
pIdxBufL
[
startIdx
+
vx_index
]
+
state
->
load_
base_vertex_index
;
SkipnStrides
=
pIdxBufL
[
startIdx
+
vx_index
]
+
state
->
base_vertex_index
;
}
tmp_tex_mask
=
tex_mask
;
...
...
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