aboutsummaryrefslogtreecommitdiff
path: root/src/libANGLE/Image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libANGLE/Image.cpp')
-rw-r--r--src/libANGLE/Image.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libANGLE/Image.cpp b/src/libANGLE/Image.cpp
index 995cb41e40..83e1a89618 100644
--- a/src/libANGLE/Image.cpp
+++ b/src/libANGLE/Image.cpp
@@ -291,6 +291,7 @@ Image::Image(rx::EGLImplFactory *factory,
{
ASSERT(mImplementation != nullptr);
ASSERT(buffer != nullptr);
+ ASSERT(context == nullptr || context->isShared());
mState.source->addImageSource(this);
}