rendering to/from texture in real time works