[1/5] wined3d: Make d3d_level_from_gl_info return an enum instead of a plain int

Andrei Slavoiu andrei.slavoiu at gmail.com
Mon Aug 4 09:41:01 CDT 2014

On Monday 04 August 2014 16:24:19 Henri Verbeet wrote:
> > -    if (d3d_level >= 9 && gl_info-
> > +    if (d3d_level >= WINED3D_D3D_LEVEL_9_SM3)
> You never return WINED3D_D3D_LEVEL_9_SM3 from
> d3d_level_from_gl_info(). I'd recommend to just introduce
> WINED3D_D3D_LEVEL_9 in this patch, and split it up in 
_SM2 and _SM3 in
> a separate patch.

WINED3D_D3D_LEVEL_9_SM3 is checked by 
select_card_fallback_nvidia. More likely I should add a check 
for gl_info->supported[NV_VERTEX_PROGRAM3] in 
d3d_level_from_gl_info to keep the old behavior.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20140804/e11d1830/attachment.html>

More information about the wine-devel mailing list