Issue #11: Cleaned up preparation of OpenGL renderer within sample algorithm