Skip to content
Snippets Groups Projects
Commit f6eea382 authored by Steve Lhomme's avatar Steve Lhomme Committed by Hugo Beauzée-Luyssen
Browse files

direct3d11: rename COLORSPACE_RGB_FULL as it's used for other things


Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent d65808a2
No related branches found
No related tags found
No related merge requests found
......@@ -2212,7 +2212,7 @@ static int SetupQuad(vout_display_t *vd, const video_format_t *fmt, d3d_quad_t *
}
}
static const FLOAT COLORSPACE_RGB_FULL[4 * 4] = {
static const FLOAT IDENTITY_4X4[4 * 4] = {
1.f, 0.f, 0.f, 0.f,
0.f, 1.f, 0.f, 0.f,
0.f, 0.f, 1.f, 0.f,
......@@ -2245,7 +2245,7 @@ static int SetupQuad(vout_display_t *vd, const video_format_t *fmt, d3d_quad_t *
PS_COLOR_TRANSFORM colorspace;
const FLOAT *ppColorspace;
if (RGB_shader)
ppColorspace = COLORSPACE_RGB_FULL;
ppColorspace = IDENTITY_4X4;
else
switch (fmt->space){
case COLOR_SPACE_BT709:
......@@ -2267,7 +2267,7 @@ static int SetupQuad(vout_display_t *vd, const video_format_t *fmt, d3d_quad_t *
}
memcpy(colorspace.Colorspace, ppColorspace, sizeof(colorspace.Colorspace));
memcpy(colorspace.WhitePoint, COLORSPACE_RGB_FULL, sizeof(colorspace.WhitePoint));
memcpy(colorspace.WhitePoint, IDENTITY_4X4, sizeof(colorspace.WhitePoint));
if (!RGB_shader)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment