diff options
author | ywen <ywen@codeaurora.org> | 2015-05-28 14:10:53 +0800 |
---|---|---|
committer | Digish Pandya <digishp@codeaurora.org> | 2015-06-09 17:51:35 +0530 |
commit | f087c828cd0c4f58d0b98bdc73061204b831dd0b (patch) | |
tree | 69a4f02d08169a33a49f47ddc6c724b7f29267c5 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 34a63ba4d79567146f2724c47b06ffa4f21639da (diff) |
Fix a GL error leak issue
glFinish() dequeues a native buffer, and it fails when
the bufeer has been abandoned, this is ok and will not
casue the app crash
GL_OUT_OF_MEMORY is generated in this case, and it is
not reset until glGetError called. This is happened in
build layer function, glGetError is called after glTexImg2d,
and get GL_OUT_OF_MEMORY, then this function return as OOM,
and app crash
Fix it by adding a glGetError after glFinish
Change-Id: I8803a726b6f609c4a2f8a6aa6bb7ff7064808932
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions