Drives the OpenGL-ES code path more robust when generating the mipmaps (ugly workaround)