Bugfix 3d graphics

This PR addresses problems in this issue: https://github.com/openframeworks/openFrameworks/issues/2243#issuecomment-20986473