bugfix: set correct texture slot id in render backend.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>
refactoring: create rendercmdbuffer to move parts of render implementation out of rendereventhandler.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>