fixed for nubia egl

Change-Id: Ibc071e9f7c1b8dbc0a23f925a6553309580db444