Fixed black screen 3d bug.

Signed-off-by: Denis Dik <denis.dik@hs-furtwangen.de>