Update rendering.cpp