mesa: add comment/assertion on get_tex_level_parameter_buffer()

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
Brian Paul
2016-09-23 12:59:29 -06:00
parent ae032e5ea6
commit 57279c5454
+5
View File
@@ -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) {