bugfix : ensure creation of transform- and shader device before using it.

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