Commit 19f8b597 by Greg Hartman

Treat rebinding the same image as a noop.

Bug 22321923 Change-Id: Ib32137a0ac940ab40d375e928e3334b50387c5d5 Reviewed-on: https://swiftshader-review.googlesource.com/3667Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarGreg Hartman <ghartman@google.com>
parent 0ef53dbf
......@@ -777,6 +777,11 @@ void Texture2D::copySubImage(GLenum target, GLint level, GLint xoffset, GLint yo
void Texture2D::setImage(egl::Image *sharedImage)
{
if (sharedImage == image[0])
{
return;
}
sharedImage->addRef();
if(image[0])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment