Fix 3d Cube invisible problem

The reason is a wasted GL.End() on LL.135.
Additional code optimization is included.