summaryrefslogtreecommitdiff
path: root/libs/rs/rsAllocation.cpp
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2011-01-16 14:54:28 -0800
committer Jason Sams <rjsams@android.com> 2011-01-16 16:11:42 -0800
commit300406abd4a1e96d18d2a6486b3e41ddd3cee8b4 (patch)
treec3a819319b64dd4dbdcdb194894427d0a79e7df9 /libs/rs/rsAllocation.cpp
parent981df1d9931c1bd48dbb735437823b92db51e1a1 (diff)
Add some error checking.
Change-Id: I007b1429a64b39ffd5cdef200c295d5a31f95048
Diffstat (limited to 'libs/rs/rsAllocation.cpp')
-rw-r--r--libs/rs/rsAllocation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/rs/rsAllocation.cpp b/libs/rs/rsAllocation.cpp
index 6e4c22eab230..41c9fe2d016c 100644
--- a/libs/rs/rsAllocation.cpp
+++ b/libs/rs/rsAllocation.cpp
@@ -212,6 +212,7 @@ void Allocation::update2DTexture(const void *ptr, uint32_t xoff, uint32_t yoff,
GLenum type = mType->getElement()->getComponent().getGLType();
GLenum format = mType->getElement()->getComponent().getGLFormat();
GLenum target = (GLenum)getGLTarget();
+ rsAssert(mTextureID);
glBindTexture(target, mTextureID);
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
GLenum t = GL_TEXTURE_2D;