fix for dx9 custom texture regression
fix for dx11 initialization problems