aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/EGLImageTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/EGLImageTest.cpp')
-rw-r--r--tests/EGLImageTest.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/EGLImageTest.cpp b/tests/EGLImageTest.cpp
index 51da718953..73dd761854 100644
--- a/tests/EGLImageTest.cpp
+++ b/tests/EGLImageTest.cpp
@@ -172,11 +172,12 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(EGLImageTest, reporter, ctxInfo) {
REPORTER_ASSERT(reporter,
proxy->priv().peekTexture()->texturePriv().mipMapped() == GrMipMapped::kNo);
- REPORTER_ASSERT(reporter, proxy->texPriv().isGLTextureRectangleOrExternal());
- REPORTER_ASSERT(reporter,
- proxy->priv().peekTexture()->surfacePriv().isGLTextureRectangleOrExternal());
- REPORTER_ASSERT(reporter, proxy->texPriv().isClampOnly());
- REPORTER_ASSERT(reporter, proxy->priv().peekTexture()->surfacePriv().isClampOnly());
+ REPORTER_ASSERT(reporter, proxy->texPriv().textureType() == GrTextureType::kExternal);
+ REPORTER_ASSERT(
+ reporter,
+ proxy->priv().peekTexture()->texturePriv().textureType() == GrTextureType::kExternal);
+ REPORTER_ASSERT(reporter, proxy->texPriv().hasRestrictedSampling());
+ REPORTER_ASSERT(reporter, proxy->priv().peekTexture()->texturePriv().hasRestrictedSampling());
// Should not be able to wrap as a RT
{