GL_INVALID_ENUM errors with FBO

Chris Robinson chris.kcat at gmail.com
Thu Jul 24 02:52:23 CDT 2008


On Wednesday 23 July 2008 03:56:14 pm Vitaliy Margolen wrote:
> +#define checkGLcall(A...)                                       \

AFAIK, this valid C. It's a GNU extension. This:
#define checkGLcall(...)
TRACE(__VA_ARGS__);
is valid C, but requires C99.

> +        TRACE(A);                                               \
> +        TRACE(" @ %s:%d call ok\n", __FILE__, __LINE__);        \

And I think splitting this up potentially introduces a trace race if a thread 
switch happens between the two calls. The other thread's trace would print 
where the second statement should, and the second statement would 
just "float" later in the log.


More information about the wine-devel mailing list