Fix null device for dx11/11.2

Fix texture loader return code