Removed superfluous gl:color call. Set the viewport with GLint instead of GLdouble.