wined3d: Use ARB_internalformat_query2 to check for texture format rendering and...