[PATCH 2/5] wined3d: Shadow format flags in wined3d_rendertarget_view.

Henri Verbeet hverbeet at gmail.com
Wed Apr 22 07:05:04 CDT 2015


On 22 April 2015 at 11:30, Stefan Dösinger <stefan at codeweavers.com> wrote:
> @@ -101,6 +101,7 @@ static void wined3d_rendertarget_view_init(struct wined3d_rendertarget_view *vie
>      view->parent_ops = parent_ops;
>
>      view->format = wined3d_get_format(gl_info, desc->format_id);
> +    view->format_flags = resource->format_flags;
That's wrong. We won't be able to do much with this until we support
ARB_texture_view, but the view format is mostly independent of the
resource format, other than that they have to be from the same
compatibility class. I guess you'd want something like
"view->format_flags = view->format->flags[resource->gl_type];".



More information about the wine-devel mailing list