Small fix in QRenderTarget

Change-Id: I8958b049dff2b5c1ed23ab803e0515e75af13f3c
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>