Fix OpenGL ES2 support.