[vlc-commits] [Git][videolan/vlc][3.0.x] d3d11_quad: fix bogus pointer type on reset

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Jun 12 11:25:42 UTC 2024



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
b0c75254 by Steve Lhomme at 2024-06-12T11:01:47+00:00
d3d11_quad: fix bogus pointer type on reset

It should behave the same but it's the wrong type.

- - - - -


1 changed file:

- modules/video_output/win32/d3d11_quad.c


Changes:

=====================================
modules/video_output/win32/d3d11_quad.c
=====================================
@@ -74,7 +74,7 @@ void D3D11_RenderQuad(d3d11_device_t *d3d_dev, d3d_quad_t *quad,
 
     /* force unbinding the input texture, otherwise we get:
      * OMSetRenderTargets: Resource being set to OM RenderTarget slot 0 is still bound on input! */
-    ID3D11RenderTargetView *reset[D3D11_MAX_SHADER_VIEW] = { 0 };
+    ID3D11ShaderResourceView *reset[D3D11_MAX_SHADER_VIEW] = { 0 };
     ID3D11DeviceContext_PSSetShaderResources(d3d_dev->d3dcontext, 0, quad->resourceCount, reset);
 }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b0c75254581e409f9479cee7c08df5346f64176d

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b0c75254581e409f9479cee7c08df5346f64176d
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list