updated code in line with hello_opengl