EGL fix

https://code-review.phablet.ubuntu.com/gitweb?p=CyanogenMod/android_frameworks_native.git;a=commitdiff;h=a0a706b8258863757cf2e3664c8fddaa794a0514