Fix obvious typo bug in egl.cpp

can (and does sometimes) lead to accessing array with -1 as index
1 file changed