Pass Context to setLabel.
This is useful for triggering a dirty state notification for Textures.
It will lead to improvements for program and texture dirty bits.
Bug: angleproject:2966
Change-Id: Iaba625da8a970a558f7d158bfa2f09c964f6761a
Reviewed-on: https://chromium-review.googlesource.com/c/1347669
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
diff --git a/src/libANGLE/Context.cpp b/src/libANGLE/Context.cpp
index d5ec259..54b6f9a 100644
--- a/src/libANGLE/Context.cpp
+++ b/src/libANGLE/Context.cpp
@@ -1030,7 +1030,7 @@
ASSERT(object != nullptr);
std::string labelName = GetObjectLabelFromPointer(length, label);
- object->setLabel(labelName);
+ object->setLabel(this, labelName);
// TODO(jmadill): Determine if the object is dirty based on 'name'. Conservatively assume the
// specified object is active until we do this.
@@ -1043,7 +1043,7 @@
ASSERT(object != nullptr);
std::string labelName = GetObjectLabelFromPointer(length, label);
- object->setLabel(labelName);
+ object->setLabel(this, labelName);
}
void Context::getObjectLabel(GLenum identifier,