Module: Mesa Branch: master Commit: 57279c5454565fe8dac38905b09504739f9ab2cf URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=57279c5454565fe8dac38905b09504739f9ab2cf
Author: Brian Paul <[email protected]> Date: Fri Sep 23 12:59:29 2016 -0600 mesa: add comment/assertion on get_tex_level_parameter_buffer() Reviewed-by: Anuj Phogat <[email protected]> --- src/mesa/main/texparam.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index bdd3fcb..a814778 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -1486,6 +1486,9 @@ invalid_pname: } +/** + * Handle a glGetTexLevelParamteriv() call for a texture buffer. + */ static void get_tex_level_parameter_buffer(struct gl_context *ctx, const struct gl_texture_object *texObj, @@ -1498,6 +1501,8 @@ get_tex_level_parameter_buffer(struct gl_context *ctx, GLenum baseFormat = _mesa_get_format_base_format(texFormat); const char *suffix = dsa ? "ture" : ""; + assert(texObj->Target == GL_TEXTURE_BUFFER); + if (!bo) { /* undefined texture buffer object */ switch (pname) { _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
