Update rendering.cpp

Fix build