Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 984827cc authored by Ivan.liu's avatar Ivan.liu
Browse files

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: default avatarXiaowen Liu <xiaowen.liu@nxp.com>
parent d0a0ae34
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment