Update graphicsEngine.cpp