[PATCH 1/7] wined3d: Use MAX_TEXTURES instead of magic number.

Henri Verbeet hverbeet at gmail.com
Mon Oct 3 08:46:10 CDT 2016


On 3 October 2016 at 00:38, Józef Kucia <jkucia at codeweavers.com> wrote:
> diff --git a/dlls/wined3d/ati_fragment_shader.c b/dlls/wined3d/ati_fragment_shader.c
> index cd32009..7a04f76 100644
> --- a/dlls/wined3d/ati_fragment_shader.c
> +++ b/dlls/wined3d/ati_fragment_shader.c
> @@ -1307,7 +1307,7 @@ static void atifs_get_caps(const struct wined3d_gl_info *gl_info, struct fragmen
>       * The proper fix for this is not to use GL_ATI_fragment_shader on cards newer than the
>       * r200 series and use an ARB or GLSL shader instead
>       */
> -    caps->MaxTextureBlendStages   = 8;
> +    caps->MaxTextureBlendStages   = MAX_TEXTURES;
For what it's worth, note that ati_fragment_shader.c in particular has
a couple of other places with hard 8's as well.



More information about the wine-devel mailing list