Matteo Bruni : wined3d: Fix querying texture-related limits on core profile.