commit | 5507c0448390425735cf92e8e2caa472aa9858a8 | [log] [tgz] |
---|---|---|
author | Yahan Zhou <yahan@google.com> | Wed Jun 01 17:24:28 2016 -0700 |
committer | Yahan Zhou <yahan@google.com> | Fri Jun 03 11:02:12 2016 -0700 |
tree | 6ca1e72ce42ede5c79feb94d7d9a3dd8d7872265 | |
parent | a5c3684958cc38a63f898475679d05ed12baabc6 [diff] |
Check vertex buffer size before glDraw* This patch verifies if a vertex buffer is big enough before calling glDraw*. It fixes crashes when trying to index outside of vertex buffer. It should make it less crashy in glDrawElements and glDrawArrays: https://code.google.com/p/android/issues/detail?id=207284 Change-Id: I36f0f568d96b576f0e0975435d2d7fd41cd9e732