wined3d: Don't call glGetError if nobody is listening.
This commit is contained in:
parent
1d265bcac2
commit
6a04c2d5cc
|
@ -883,17 +883,19 @@ extern int num_lock;
|
||||||
/* Checking of API calls */
|
/* Checking of API calls */
|
||||||
/* --------------------- */
|
/* --------------------- */
|
||||||
#ifndef WINE_NO_DEBUG_MSGS
|
#ifndef WINE_NO_DEBUG_MSGS
|
||||||
#define checkGLcall(A) \
|
#define checkGLcall(A) \
|
||||||
do { \
|
do { \
|
||||||
GLint err = glGetError(); \
|
GLint err; \
|
||||||
if (err == GL_NO_ERROR) { \
|
if(!__WINE_IS_DEBUG_ON(_FIXME, __wine_dbch___default)) break; \
|
||||||
TRACE("%s call ok %s / %d\n", A, __FILE__, __LINE__); \
|
err = glGetError(); \
|
||||||
\
|
if (err == GL_NO_ERROR) { \
|
||||||
} else do { \
|
TRACE("%s call ok %s / %d\n", A, __FILE__, __LINE__); \
|
||||||
FIXME(">>>>>>>>>>>>>>>>> %s (%#x) from %s @ %s / %d\n", \
|
\
|
||||||
debug_glerror(err), err, A, __FILE__, __LINE__); \
|
} else do { \
|
||||||
err = glGetError(); \
|
FIXME(">>>>>>>>>>>>>>>>> %s (%#x) from %s @ %s / %d\n", \
|
||||||
} while (err != GL_NO_ERROR); \
|
debug_glerror(err), err, A, __FILE__, __LINE__); \
|
||||||
|
err = glGetError(); \
|
||||||
|
} while (err != GL_NO_ERROR); \
|
||||||
} while(0)
|
} while(0)
|
||||||
#else
|
#else
|
||||||
#define checkGLcall(A) do {} while(0)
|
#define checkGLcall(A) do {} while(0)
|
||||||
|
|
Loading…
Reference in New Issue