summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-09-23 12:59:29 -0600
committerBrian Paul <[email protected]>2016-10-06 11:29:31 -0600
commit57279c5454565fe8dac38905b09504739f9ab2cf (patch)
treec6219938268c106154a44ad946e35048921cae0e /src/mesa/main
parentae032e5ea61dac3c63d74056174939e5ec091629 (diff)
mesa: add comment/assertion on get_tex_level_parameter_buffer()
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/texparam.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c
index bdd3fcb72dd..a8147786fa8 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) {