wined3d: Fixed error message when glDrawElement fails.
This commit is contained in:
parent
409c93f6fd
commit
6aead911fb
|
@ -244,13 +244,14 @@ static void drawStridedFast(IWineD3DDevice *iface,UINT numberOfVertices, GLenum
|
||||||
#if 1
|
#if 1
|
||||||
glDrawElements(glPrimitiveType, numberOfVertices, idxSize == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT,
|
glDrawElements(glPrimitiveType, numberOfVertices, idxSize == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT,
|
||||||
(const char *)idxData+(idxSize * startIdx));
|
(const char *)idxData+(idxSize * startIdx));
|
||||||
|
checkGLcall("glDrawElements");
|
||||||
#else /* using drawRangeElements may be faster */
|
#else /* using drawRangeElements may be faster */
|
||||||
|
|
||||||
glDrawRangeElements(glPrimitiveType, minIndex, minIndex + numberOfVertices - 1, numberOfVertices,
|
glDrawRangeElements(glPrimitiveType, minIndex, minIndex + numberOfVertices - 1, numberOfVertices,
|
||||||
idxSize == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT,
|
idxSize == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT,
|
||||||
(const char *)idxData+(idxSize * startIdx));
|
(const char *)idxData+(idxSize * startIdx));
|
||||||
#endif
|
|
||||||
checkGLcall("glDrawRangeElements");
|
checkGLcall("glDrawRangeElements");
|
||||||
|
#endif
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue