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
f065a5e5
Commit
f065a5e5
authored
Sep 30, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove the useless device parameter to drawStridedFast().
parent
c2363f75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
drawprim.c
dlls/wined3d/drawprim.c
+2
-7
No files found.
dlls/wined3d/drawprim.c
View file @
f065a5e5
...
...
@@ -33,13 +33,10 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d_draw);
#include <math.h>
/* GL locking is done by the caller */
static
void
drawStridedFast
(
IWineD3DDevice
*
iface
,
GLenum
primitive_type
,
UINT
count
,
UINT
idx_size
,
const
void
*
idx_data
,
UINT
start_idx
)
static
void
drawStridedFast
(
GLenum
primitive_type
,
UINT
count
,
UINT
idx_size
,
const
void
*
idx_data
,
UINT
start_idx
)
{
if
(
idx_size
)
{
TRACE
(
"(%p) : glElements(%x, %d, ...)
\n
"
,
iface
,
primitive_type
,
count
);
glDrawElements
(
primitive_type
,
count
,
idx_size
==
2
?
GL_UNSIGNED_SHORT
:
GL_UNSIGNED_INT
,
(
const
char
*
)
idx_data
+
(
idx_size
*
start_idx
));
...
...
@@ -47,8 +44,6 @@ static void drawStridedFast(IWineD3DDevice *iface, GLenum primitive_type,
}
else
{
TRACE
(
"(%p) : glDrawArrays(%#x, %d, %d)
\n
"
,
iface
,
primitive_type
,
start_idx
,
count
);
glDrawArrays
(
primitive_type
,
start_idx
,
count
);
checkGLcall
(
"glDrawArrays"
);
}
...
...
@@ -722,7 +717,7 @@ void drawPrimitive(IWineD3DDevice *iface, UINT index_count, UINT StartIdx, UINT
drawStridedInstanced
(
iface
,
&
This
->
strided_streams
,
index_count
,
glPrimType
,
idxData
,
idxSize
,
StartIdx
);
}
else
{
drawStridedFast
(
iface
,
glPrimType
,
index_count
,
idxSize
,
idxData
,
StartIdx
);
drawStridedFast
(
glPrimType
,
index_count
,
idxSize
,
idxData
,
StartIdx
);
}
}
...
...
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