wrap whole loop under #if EMSCRIPTEN
Make glClear work inside framebuffers
Future proofing