BAD_EGL ALLOC FIX

many thanks to macs