mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Merge pull request #303 from mattgodbolt/fixes-for-uninitialized-errors
Initialize all `const` members.
This commit is contained in:
commit
bc65ba3f9b
@ -150,14 +150,14 @@ void OpenGLOutputBuilder::draw_frame(unsigned int output_width, unsigned int out
|
||||
{composite_input_shader_program_.get(), composite_texture_.get(), {0.0, 0.0, 0.0}},
|
||||
{composite_separation_filter_program_.get(), separated_texture_.get(), {0.0, 0.5, 0.5}},
|
||||
{composite_chrominance_filter_shader_program_.get(), filtered_texture_.get(), {0.0, 0.0, 0.0}},
|
||||
{nullptr}
|
||||
{nullptr, nullptr}
|
||||
};
|
||||
|
||||
// for RGB video, there's only two steps
|
||||
RenderStage rgb_render_stages[] = {
|
||||
{rgb_input_shader_program_.get(), composite_texture_.get(), {0.0, 0.0, 0.0}},
|
||||
{rgb_filter_shader_program_.get(), filtered_texture_.get(), {0.0, 0.0, 0.0}},
|
||||
{nullptr}
|
||||
{nullptr, nullptr}
|
||||
};
|
||||
|
||||
RenderStage *active_pipeline = get_is_television_output() ? composite_render_stages : rgb_render_stages;
|
||||
|
@ -21,7 +21,7 @@ namespace {
|
||||
{"outputStart", 1},
|
||||
{"ends", 2},
|
||||
{"phaseTimeAndAmplitude", 3},
|
||||
{nullptr}
|
||||
{nullptr, 0}
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ namespace {
|
||||
const OpenGL::Shader::AttributeBinding bindings[] = {
|
||||
{"position", 0},
|
||||
{"srcCoordinates", 1},
|
||||
{nullptr}
|
||||
{nullptr, 0}
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user