Fix viewport update when using DirecRender mode

Currently the viewport is not updated when using direct render mode.

Change-Id: I1ad8c6456ed4c18041aff4f258466ed2b344764d
Reviewed-by: Thomas Senyk <thomas.senyk@pelagicore.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>