opengl_check moved into individual build function