commit | bf5add6bd5d87796621799d9da82db06b5d15f60 | [log] [tgz] |
---|---|---|
author | Martin Storsjo <martin@martin.st> | Sun Aug 11 21:40:28 2013 +0300 |
committer | Martin Storsjo <martin@martin.st> | Sun Aug 11 21:58:40 2013 +0300 |
tree | 7da9e7c1aaf81373cd36d3c4b9e0b7407741f1e1 | |
parent | 6da9a761cd06c67a9c30534b4da2b8447aced5d0 [diff] |
Check the return value of eglChooseConfig The EGL specs say that eglChooseConfig doesn't update num_config if it returns a failure (which is exactly what Translator/EGL/EglImp.cpp does). Therefore, if this function returned a failure (e.g. due to an unsupported egl attribute), nConfigs was left untouched, meaning that the configs array was left uninitialized but treated as if it was full of valid configs. Change-Id: I3809272298ea10d65dc939849d2e3c17d1158da6