app.cpp: Fix order of rendering logic