delete unused ifdef
Rendering Test, with fixing bugs