Bind the EGL surface before querying its attributes