Fix to OpenGL native