summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-10-17 22:22:11 +0200
committerCarl Hetherington <cth@carlh.net>2022-10-18 20:25:57 +0200
commit6c95d7eb4274cefdd6fb5b4f69deaeaff47514da (patch)
tree69f3f9bc7326836457883a09702975f647919e85
parent8293be30989a5fc02e54622b7c9b5c5ff6d7644b (diff)
Rename colour_conversion -> xyz_rec709_colour_conversion.
-rw-r--r--src/wx/gl_video_view.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc
index 1f60af69d..efafe6548 100644
--- a/src/wx/gl_video_view.cc
+++ b/src/wx/gl_video_view.cc
@@ -203,7 +203,7 @@ static constexpr char fragment_source[] =
"uniform int type = 0;\n"
"uniform vec4 outline_content_colour;\n"
"uniform vec4 crop_guess_colour;\n"
-"uniform mat4 colour_conversion;\n"
+"uniform mat4 xyz_rec709_colour_conversion;\n"
"\n"
"out vec4 FragColor;\n"
"\n"
@@ -271,7 +271,7 @@ static constexpr char fragment_source[] =
" FragColor.x = pow(FragColor.x, IN_GAMMA) / DCI_COEFFICIENT;\n"
" FragColor.y = pow(FragColor.y, IN_GAMMA) / DCI_COEFFICIENT;\n"
" FragColor.z = pow(FragColor.z, IN_GAMMA) / DCI_COEFFICIENT;\n"
-" FragColor = colour_conversion * FragColor;\n"
+" FragColor = xyz_rec709_colour_conversion * FragColor;\n"
" FragColor.x = pow(FragColor.x, OUT_GAMMA);\n"
" FragColor.y = pow(FragColor.y, OUT_GAMMA);\n"
" FragColor.z = pow(FragColor.z, OUT_GAMMA);\n"
@@ -462,9 +462,9 @@ GLVideoView::setup_shaders ()
0.0f, 0.0f, 0.0f, 1.0f
};
- auto colour_conversion = glGetUniformLocation (program, "colour_conversion");
+ auto xyz_rec709_colour_conversion = glGetUniformLocation(program, "xyz_rec709_colour_conversion");
check_gl_error ("glGetUniformLocation");
- glUniformMatrix4fv (colour_conversion, 1, GL_TRUE, gl_matrix);
+ glUniformMatrix4fv(xyz_rec709_colour_conversion, 1, GL_TRUE, gl_matrix);
glLineWidth (1.0f);
check_gl_error ("glLineWidth");