On 26 February 2017 at 19:55, Józef Kucia jkucia@codeweavers.com wrote:
+static BOOL match_nvidia_viewport_subpixel_bits(const struct wined3d_gl_info *gl_info, const char *gl_renderer,
enum wined3d_gl_vendor gl_vendor, enum wined3d_pci_vendor card_vendor, enum wined3d_pci_device device)
+{
- return gl_vendor == GL_VENDOR_NVIDIA && gl_info->supported[ARB_VIEWPORT_ARRAY];
+}
If reasonably possible, we'd like to avoid matching on gl_vendor and the like. It's not the most reliable information we have, and would prevent the feature from working in the future if the driver is ever fixed. I'll grant the chances aren't great on the latter, but out of principle, it should be possible to test if the feature itself is working.