summaryrefslogtreecommitdiff
path: root/opengl/libagl/state.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2011-08-10 17:35:09 -0700
committer Mathias Agopian <mathias@google.com> 2011-08-10 17:35:52 -0700
commit8e19c2e97e11505ee2ecf336275fd956f2ccfa22 (patch)
treea89be6f4e1ae6f163c536fb46fa90ad81880593f /opengl/libagl/state.cpp
parent2560d14ce8e38984032d999e3fdf8da9a47baf3c (diff)
fix a crasher in SurfaceTexture::updateTexImage()
we now make sure to drain the buffer queue on disconnect. this happens only when in synchrnous mode. in async mode we clear all buffers except the head of the queue. for extra safety we also catch the null pointer in updateTexImage (which should never happen) and return an error. Bug: 5111008 Change-Id: I5174a6ecbb0de641c6510ef56a611cbb4e9e1f59
Diffstat (limited to 'opengl/libagl/state.cpp')
0 files changed, 0 insertions, 0 deletions