[PATCH 1/5] d3d8: Set the primary stateblock when executing draw calls.

Henri Verbeet hverbeet at gmail.com
Wed Feb 19 08:06:26 CST 2020


On Wed, 19 Feb 2020 at 05:24, Zebediah Figura <z.figura12 at gmail.com> wrote:
> @@ -3436,23 +3439,26 @@ static HRESULT WINAPI d3d8_device_GetStreamSource(IDirect3DDevice8 *iface,
>      if (!buffer)
>          return D3DERR_INVALIDCALL;
>
> +    if (stream_idx > WINED3D_MAX_STREAMS)
> +    {
Should that be "stream_idx >= WINED3D_MAX_STREAMS"?



More information about the wine-devel mailing list