MANGLE egl::Surface.
This class has its fingers in a lot of other classes. In particular,
we will likely need to revisit the context lost handling methods when
we implement the robustness extensions on top of desktop GL. For now,
we can leave them tied pretty tightly to the D3D implementation.
BUG=angle:795
Change-Id: I9b3ac90dfd393f52c5b49bc2bd6b97fb5536ed91
Reviewed-on: https://chromium-review.googlesource.com/228916
Tested-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
diff --git a/src/libANGLE/Texture.cpp b/src/libANGLE/Texture.cpp
index 4df95b1..afc6d46 100644
--- a/src/libANGLE/Texture.cpp
+++ b/src/libANGLE/Texture.cpp
@@ -181,7 +181,7 @@
{
if (mSurface)
{
- mSurface->setBoundTexture(NULL);
+ mSurface->releaseTexImage(EGL_BACK_BUFFER);
mSurface = NULL;
}
}
@@ -228,20 +228,15 @@
void Texture2D::bindTexImage(egl::Surface *surface)
{
releaseTexImage();
-
mTexture->bindTexImage(surface);
-
mSurface = surface;
- mSurface->setBoundTexture(this);
}
void Texture2D::releaseTexImage()
{
if (mSurface)
{
- mSurface->setBoundTexture(NULL);
mSurface = NULL;
-
mTexture->releaseTexImage();
}
}