Re: [Mesa-dev] [PATCH 5/9] mesa: Add skeleton implementation of glGetInternalformativ

2012-12-20 Thread Eric Anholt
Ian Romanick writes: > + if (bufSize != 0 && params == NULL) { > + /* Emit a warning to aid application debugging, but go ahead and do the > + * memcpy (and probably crash) anyway. > + */ > + _mesa_warning(ctx, > +"glGetInternalformativ(bufSize = %d, but

[Mesa-dev] [PATCH 5/9] mesa: Add skeleton implementation of glGetInternalformativ

2012-12-19 Thread Ian Romanick
From: Ian Romanick This is for the GL_ARB_internalformat_query extension and GLES 3.0. Signed-off-by: Ian Romanick --- src/mesa/main/formatquery.c | 119 src/mesa/main/formatquery.h | 35 + src/mesa/sources.mak| 1 + 3 files c