Fixes openglbook.com issue #24
See https://github.com/openglbook/openglbook.com/issues/24 for details