[vlc-devel] [PATCH] Direct3D shader support (HLSL)

xxcv xxcv07 at gmail.com
Sat Aug 14 08:09:50 CEST 2010


Hi,
On 14/08/2010 3:34 PM, Sasha Koruga wrote:
> @@ -1069,7 +1308,7 @@ static void Direct3DRenderScene(vout_display_t *vd, LPDIRECT3DSURFACE9 surface)
>
>      /* Update the vertex buffer */
>      CUSTOMVERTEX *vertices;
> -    hr = IDirect3DVertexBuffer9_Lock(d3dvtc, 0, 0, &vertices, D3DLOCK_DISCARD);
> +    hr = IDirect3DVertexBuffer9_Lock(d3dvtc, 0, 0, (void**)&vertices, D3DLOCK_DISCARD);
>      if (FAILED(hr)) {
>          msg_Dbg(vd, "%s:%d (hr=0x%0lX)", __FUNCTION__, __LINE__, hr);
>          return;
 From what I can see the cast was deliberately removed in commit 
ea88cefe21daffa6eba3e5e2562dd356bdfab530
How come you reintroduce unnecessary casting ?


Regards,

-- 
My VLC, My Way, My Style~



More information about the vlc-devel mailing list