1) fix for directx resources getting leaked on empty screen