Added fixes for OpenGL on Apple.
Fixed midplane not rendering.