[vlc-commits] [Git][videolan/vlc][3.0.x] direct3d11: fix CPU staging texture format

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Wed Jun 5 07:39:23 UTC 2024



Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC


Commits:
c1b0be7c by Steve Lhomme at 2024-06-05T06:40:59+00:00
direct3d11: fix CPU staging texture format

After b6a3a8b19e5d4cb6a9ec79c08984e0db927dd98c we need to use the pool format.

- - - - -


1 changed file:

- modules/video_output/win32/direct3d11.c


Changes:

=====================================
modules/video_output/win32/direct3d11.c
=====================================
@@ -1893,7 +1893,7 @@ static int Direct3D11CreateFormatResources(vout_display_t *vd, const video_forma
     {
         /* we need a staging texture */
         ID3D11Texture2D *textures[D3D11_MAX_SHADER_VIEW] = {0};
-        video_format_t surface_fmt = *fmt;
+        video_format_t surface_fmt = sys->pool_fmt;
         surface_fmt.i_width  = sys->picQuad.i_width;
         surface_fmt.i_height = sys->picQuad.i_height;
 



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

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c1b0be7cd46ac5955e08b457822c50b8a47a76ac
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