wined3d: Disable checkGLcall when WINE_NO_DEBUG_MSGS is specified.
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 0ad75c9..134e33b 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -420,6 +420,7 @@
 
 /* Checking of API calls */
 /* --------------------- */
+#ifndef WINE_NO_DEBUG_MSGS
 #define checkGLcall(A)                                          \
 {                                                               \
     GLint err = glGetError();                                   \
@@ -431,7 +432,10 @@
             debug_glerror(err), err, A, __FILE__, __LINE__);    \
        err = glGetError();                                      \
     } while (err != GL_NO_ERROR);                               \
-} 
+}
+#else
+#define checkGLcall(A) do {} while(0);
+#endif
 
 /* Trace routines / diagnostics */
 /* ---------------------------- */