wined3d: Disable checkGLcall when WINE_NO_DEBUG_MSGS is specified.

This commit is contained in:
Henri Verbeet 2008-12-02 18:41:33 +01:00 committed by Alexandre Julliard
parent 70968e69ac
commit 5284fce1ac
1 changed files with 5 additions and 1 deletions

View File

@ -420,6 +420,7 @@ extern int num_lock;
/* Checking of API calls */
/* --------------------- */
#ifndef WINE_NO_DEBUG_MSGS
#define checkGLcall(A) \
{ \
GLint err = glGetError(); \
@ -431,7 +432,10 @@ extern int num_lock;
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 */
/* ---------------------------- */