summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragment.java
diff options
context:
space:
mode:
authorIvan.liu <xiaowen.liu@freescale.com>2016-08-24 17:19:03 +0800
committerIvan.liu <xiaowen.liu@freescale.com>2016-08-25 10:50:54 +0800
commit984827cc9c170b1092a30931b08c7a0d18865fd3 (patch)
treeae53f5b3dfb94022840b22c46f2143fd00f49cca /rs/java/android/renderscript/ProgramFragment.java
parentd0a0ae349c6bbfe4c9cae5d5d2e06085ad9b56e1 (diff)
Fix suspend crash issue on no GPU platform.
eglChooseConfig should return false only if an error occured. If eglChooseConfig is called with a valid attribute list, no internal EGL errors occur. And if no available config matches the requested attribute list, no configs are returned. Not only the return value of eglChooseConfig should be checked, the 'num_config' out-param must be inspected too. If no configs were returned, and no error occurred, then 'num_config' will be 0. Change-Id: Id36d88820b8e33713bc83e0d4b90c3fee7f005fd Signed-off-by: Xiaowen Liu <xiaowen.liu@nxp.com>
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragment.java')
0 files changed, 0 insertions, 0 deletions