bugfix: fix invalid setup of render ctx.

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