[7/10] WineD3D: No bounds checking is done on sampler / texture numbers

Vitaliy Margolen wine-devel at kievinfo.com
Mon Feb 19 22:55:54 CST 2007


H. Verbeet wrote:
> On 19/02/07, Stefan Dösinger <stefan at codeweavers.com> wrote:
>> -    if(Sampler >  GL_LIMITS(sampler_stages) || Sampler < 0 || Type >
> WINED3D_HIGHEST_SAMPLER_STATE || Type < 0) {
> 
> This also checked the sampler state, not just the sampler.
> 
> 
I would also keep some warning messages in there like WARN so we can
easily see if game does something wrong.

Vitaliy




More information about the wine-devel mailing list