this is working for gl-simulation (not for fpga)