mesa/st: Fix NULL access if no fragment shader is bound
[mesa.git] / src / mesa / state_tracker / st_texture.c
index 6beb21e33891bb129df9c24075e5764ee0c7ebd9..52b094330b9b28f0e553350792afb052bbc80e9a 100644 (file)
@@ -462,6 +462,11 @@ st_texture_get_sampler_view(struct st_context *st,
    return free;
 }
 
+
+/**
+ * For the given texture object, release any sampler views which belong
+ * to the calling context.
+ */
 void
 st_texture_release_sampler_view(struct st_context *st,
                                 struct st_texture_object *stObj)
@@ -478,6 +483,11 @@ st_texture_release_sampler_view(struct st_context *st,
    }
 }
 
+
+/**
+ * Release all sampler views attached to the given texture object, regardless
+ * of the context.
+ */
 void
 st_texture_release_all_sampler_views(struct st_context *st,
                                      struct st_texture_object *stObj)