[04/10] wined3d: Ignore SetTextureStageState on unsupported texture stages

Stefan Dösinger stefandoesinger at gmx.at
Mon Apr 16 14:29:24 CDT 2007

Am Montag 16 April 2007 21:19 schrieb H. Verbeet:
> Tests indicate that Windows doesn't actually check the bounds on this
> call. However, since our memory layout is almost certainly different
> >from Windows' an application might very well get away with a little
> bit of memory corruption on Windows and not on Wine. It seems to me
> that the best way to deal with this is to simply print a WARN and
> return WINED3D_OK.
> Changelog:
>   - Ignore SetTextureStageState on unsupported texture stages
Wouldn't it be better to check against MAX_TEXTURES instead of the gl limit? 
Or do changes get lost on windows too? GetTextureStageState may tell the 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20070416/621c3e56/attachment.pgp

More information about the wine-devel mailing list