[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: [PATCH 4/4] wined3d: Don't use depth textures without ARB_depth_texture.
From:       Henri Verbeet <hverbeet () gmail ! com>
Date:       2015-04-30 9:09:26
Message-ID: CAOsNvwxvxp+eX0BnBJUYDcxBQN03bQ8qXAuytgJnX3wuxQAw7g () mail ! gmail ! com
[Download RAW message or body]

On 30 April 2015 at 00:00, Stefan Dösinger <stefan@codeweavers.com> wrote:
> +            if (!gl_info->supported[ARB_DEPTH_TEXTURE])
> +            {
> +                static const unsigned int depth_flags = WINED3DFMT_FLAG_SHADOW | WINED3DFMT_FLAG_DEPTH
> +                        | WINED3DFMT_FLAG_STENCIL;
> +                format->flags[WINED3D_GL_RES_TYPE_TEX_1D] &= ~depth_flags;
> +                format->flags[WINED3D_GL_RES_TYPE_TEX_2D] &= ~depth_flags;
> +                format->flags[WINED3D_GL_RES_TYPE_TEX_3D] &= ~depth_flags;
> +                format->flags[WINED3D_GL_RES_TYPE_TEX_CUBE] &= ~depth_flags;
> +                format->flags[WINED3D_GL_RES_TYPE_TEX_RECT] &= ~depth_flags;
> +            }
This is wrong for the reasons mentioned in patch 2/4, but it should
also be unnecessary. WINED3DFMT_FLAG_TEXTURE is supposed to indicate
if you can use a format for texturing or not.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic