[PATCH 5/5] wined3d: Explicitly pass the state information to buffer_internal_preload

Henri Verbeet hverbeet at gmail.com
Wed Sep 11 06:32:56 CDT 2013


On 11 September 2013 11:31, Stefan Dösinger <stefan at codeweavers.com> wrote:
> -    /* Reading the declaration makes only sense if the stateblock is finalized and the buffer bound to a stream */
> -    if (device->isInDraw && buffer->resource.bind_count > 0)
> +    /* Reading the declaration makes only sense if we have valid state information
> +     * (i.e., if this function is called during draws). */
> +    if (state)
Technically what needs to be valid is the stream info, although we
probably don't care that much about the distinction.



More information about the wine-devel mailing list