Hernan Rajchert : wined3d: Fixed error message when glDrawElement fails.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Aug 13 06:31:20 CDT 2007


Module: wine
Branch: master
Commit: 6aead911fbb8aa7a34129c5fa7403f4962a943c8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6aead911fbb8aa7a34129c5fa7403f4962a943c8

Author: Hernan Rajchert <hrajchert at gmail.com>
Date:   Fri Aug 10 11:01:12 2007 -0300

wined3d: Fixed error message when glDrawElement fails.

---

 dlls/wined3d/drawprim.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c
index c35ce69..e6766a2 100644
--- a/dlls/wined3d/drawprim.c
+++ b/dlls/wined3d/drawprim.c
@@ -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 {
 




More information about the wine-cvs mailing list