mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-15 14:27:29 +00:00
Removes redundant second configuration.
This commit is contained in:
@@ -252,7 +252,7 @@ int main(int argc, char *argv[]) {
|
|||||||
// Determine the machine for the supplied file.
|
// Determine the machine for the supplied file.
|
||||||
std::vector<std::unique_ptr<Analyser::Static::Target>> targets = Analyser::Static::GetTargets(arguments.file_name.c_str());
|
std::vector<std::unique_ptr<Analyser::Static::Target>> targets = Analyser::Static::GetTargets(arguments.file_name.c_str());
|
||||||
if(targets.empty()) {
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -359,8 +359,6 @@ int main(int argc, char *argv[]) {
|
|||||||
GLint target_framebuffer = 0;
|
GLint target_framebuffer = 0;
|
||||||
glGetIntegerv(GL_FRAMEBUFFER_BINDING, &target_framebuffer);
|
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.
|
// 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()->setup_output(4.0 / 3.0);
|
||||||
machine->crt_machine()->get_crt()->set_output_gamma(2.2f);
|
machine->crt_machine()->get_crt()->set_output_gamma(2.2f);
|
||||||
|
Reference in New Issue
Block a user