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
6aead911
Commit
6aead911
authored
Aug 10, 2007
by
Hernan Rajchert
Committed by
Alexandre Julliard
Aug 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fixed error message when glDrawElement fails.
parent
409c93f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
drawprim.c
dlls/wined3d/drawprim.c
+2
-1
No files found.
dlls/wined3d/drawprim.c
View file @
6aead911
...
...
@@ -244,13 +244,14 @@ static void drawStridedFast(IWineD3DDevice *iface,UINT numberOfVertices, GLenum
#if 1
glDrawElements
(
glPrimitiveType
,
numberOfVertices
,
idxSize
==
2
?
GL_UNSIGNED_SHORT
:
GL_UNSIGNED_INT
,
(
const
char
*
)
idxData
+
(
idxSize
*
startIdx
));
checkGLcall
(
"glDrawElements"
);
#else
/* using drawRangeElements may be faster */
glDrawRangeElements
(
glPrimitiveType
,
minIndex
,
minIndex
+
numberOfVertices
-
1
,
numberOfVertices
,
idxSize
==
2
?
GL_UNSIGNED_SHORT
:
GL_UNSIGNED_INT
,
(
const
char
*
)
idxData
+
(
idxSize
*
startIdx
));
#endif
checkGLcall
(
"glDrawRangeElements"
);
#endif
}
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