diff options
author | Jordan Justen <[email protected]> | 2016-07-15 18:03:29 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2016-08-26 10:09:22 -0700 |
commit | 9a1f950bef862776cb81255b442be0a7e64cb5dd (patch) | |
tree | 095d2a396194fec4abebd228fc854341eff3e43a /src/mesa/main/teximage.c | |
parent | 0035f7f13650680df1f09fc86c0c1c8c0b39f010 (diff) |
main: Add MESA_VERBOSE=api support for glTexImage
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r-- | src/mesa/main/teximage.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 8869b3db389..efde1140126 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -5341,6 +5341,11 @@ texture_image_multisample(struct gl_context *ctx, GLuint dims, GLenum sample_count_error; bool dsa = strstr(func, "ture") ? true : false; + if (MESA_VERBOSE & (VERBOSE_API|VERBOSE_TEXTURE)) { + _mesa_debug(ctx, "%s(target=%s, samples=%d)\n", func, + _mesa_enum_to_string(target), samples); + } + if (!((ctx->Extensions.ARB_texture_multisample && _mesa_is_desktop_gl(ctx))) && !_mesa_is_gles31(ctx)) { _mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func); |