summaryrefslogtreecommitdiffstats
path: root/libs/hwui/DeferredLayerUpdater.h
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2015-03-10 11:03:39 -0700
committerChris Craik <ccraik@google.com>2015-03-10 14:02:06 -0700
commit48f650cb24e5b028deaff01baddc1d154f78d91a (patch)
tree108dbf6fba2ceed0dd04235b2bbb9406e0484ff7 /libs/hwui/DeferredLayerUpdater.h
parentedacf22ca132ac48207a68aa30998f5b43d893b8 (diff)
downloadframeworks_base-48f650cb24e5b028deaff01baddc1d154f78d91a.zip
frameworks_base-48f650cb24e5b028deaff01baddc1d154f78d91a.tar.gz
frameworks_base-48f650cb24e5b028deaff01baddc1d154f78d91a.tar.bz2
Track down unsupported texture target
bug:19641517 Change-Id: Idc2e413abef5bb1438ffb3f52efb001504d3e89f
Diffstat (limited to 'libs/hwui/DeferredLayerUpdater.h')
-rw-r--r--libs/hwui/DeferredLayerUpdater.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/DeferredLayerUpdater.h b/libs/hwui/DeferredLayerUpdater.h
index 38d8e4a..82f2741 100644
--- a/libs/hwui/DeferredLayerUpdater.h
+++ b/libs/hwui/DeferredLayerUpdater.h
@@ -59,6 +59,10 @@ public:
if (texture.get() != mSurfaceTexture.get()) {
mNeedsGLContextAttach = needsAttach;
mSurfaceTexture = texture;
+
+ GLenum target = texture->getCurrentTextureTarget();
+ LOG_ALWAYS_FATAL_IF(target != GL_TEXTURE_2D && target != GL_TEXTURE_EXTERNAL_OES,
+ "set unsupported GLConsumer with target %x", target);
}
}