1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 23:52:26 +00:00

Removes redundant second configuration.

This commit is contained in:
Thomas Harte 2018-01-25 18:50:23 -05:00
parent 66faed4008
commit db914d8c56

View File

@ -252,7 +252,7 @@ int main(int argc, char *argv[]) {
// Determine the machine for the supplied file.
std::vector<std::unique_ptr<Analyser::Static::Target>> targets = Analyser::Static::GetTargets(arguments.file_name.c_str());
if(targets.empty()) {
std::cerr << "Cannot open " << arguments.file_name << std::endl;
std::cerr << "Cannot open " << arguments.file_name << "; no target machine found" << std::endl;
return -1;
}
@ -359,8 +359,6 @@ int main(int argc, char *argv[]) {
GLint target_framebuffer = 0;
glGetIntegerv(GL_FRAMEBUFFER_BINDING, &target_framebuffer);
machine->configuration_target()->configure_as_target(*targets.front());
// Setup output, assuming a CRT machine for now, and prepare a best-effort updater.
machine->crt_machine()->setup_output(4.0 / 3.0);
machine->crt_machine()->get_crt()->set_output_gamma(2.2f);