Add more information for directx 9 error

Fix #6914