[PATCH 1/2] wined3d: Return 1 for stream frequency if the value was not set.
Henri Verbeet
hverbeet at gmail.com
Fri Feb 8 09:29:20 CST 2019
On Thu, 7 Feb 2019 at 23:14, Paul Gofman <gofmanp at gmail.com> wrote:
> @@ -1477,7 +1477,7 @@ HRESULT CDECL wined3d_device_get_stream_source_freq(const struct wined3d_device
> TRACE("device %p, stream_idx %u, divider %p.\n", device, stream_idx, divider);
>
> stream = &device->state.streams[stream_idx];
> - *divider = stream->flags | stream->frequency;
> + *divider = stream->flags | (stream->frequency || stream->flags ? stream->frequency : 1);
>
Shouldn't we simply initialise the frequency to 1 in
state_init_default() (and stateblock_state_init_default())?
More information about the wine-devel
mailing list