From: Carl Hetherington Date: Sun, 22 May 2022 19:28:23 +0000 (+0200) Subject: Cleanup: use an enum rather than a magic value. X-Git-Tag: v2.16.12~2 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=142f75bdbba9316f9180fb7a94ebc199a61fa04f Cleanup: use an enum rather than a magic value. --- diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc index 1073cb944..e912ae924 100644 --- a/src/wx/gl_video_view.cc +++ b/src/wx/gl_video_view.cc @@ -536,7 +536,7 @@ GLVideoView::draw () check_gl_error ("glDrawElements"); } if (auto guess = _viewer->crop_guess()) { - glUniform1i(_fragment_type, 1); + glUniform1i(_fragment_type, static_cast(FragmentType::CROP_GUESS)); glDrawElements (GL_LINES, indices_crop_guess_number, GL_UNSIGNED_INT, reinterpret_cast(indices_crop_guess_offset * sizeof(int))); check_gl_error ("glDrawElements"); }