Revert "Fixed rendertarget on windows"

This reverts commit ba0c840ced9692a78215eb927d53cf012ea859b4.