summaryrefslogtreecommitdiffstats
path: root/video/out/vo_direct3d.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-05-11 19:37:16 +0200
committerwm4 <wm4@nowhere>2020-05-11 19:57:34 +0200
commit6db890ebab2839443ddbfc34a4a0246d464bd14f (patch)
treebed087dd0f72b1365fa9ebb69462504db80e4474 /video/out/vo_direct3d.c
parentb5284a68296519480d9d4142880c13a8112feb18 (diff)
downloadmpv-6db890ebab2839443ddbfc34a4a0246d464bd14f.tar.bz2
mpv-6db890ebab2839443ddbfc34a4a0246d464bd14f.tar.xz
video: remove RGB32/BGR32 aliases
They are sort of confusing, and they hide the fact that they have an alpha component. Using the actual formats directly is no problem, sicne these were useful only for big endian systems, something we can't test anyway.
Diffstat (limited to 'video/out/vo_direct3d.c')
-rw-r--r--video/out/vo_direct3d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_direct3d.c b/video/out/vo_direct3d.c
index 455c3faafd..a622921a51 100644
--- a/video/out/vo_direct3d.c
+++ b/video/out/vo_direct3d.c
@@ -211,8 +211,8 @@ static const struct fmt_entry fmt_table[] = {
// packed YUV
{IMGFMT_UYVY, D3DFMT_UYVY},
// packed RGB
- {IMGFMT_BGR32, D3DFMT_X8R8G8B8},
- {IMGFMT_RGB32, D3DFMT_X8B8G8R8},
+ {IMGFMT_BGR0, D3DFMT_X8R8G8B8},
+ {IMGFMT_RGB0, D3DFMT_X8B8G8R8},
{IMGFMT_BGR24, D3DFMT_R8G8B8}, //untested
{IMGFMT_RGB565, D3DFMT_R5G6B5},
// grayscale (can be considered both packed and planar)