wined3d: Create a separate function for checking a format's FBO compatibility.