Fix a problem in modern pipeline / core profile render code, where glUseProgram was failing. It seems VAOs are mandatory in Core Profile mode, but Windows doesn't care at all if you forget to create and bind one.