mirror of https://github.com/BOINC/boinc.git
example_app: Set backwards_compatible_graphics" flag
svn path=/trunk/boinc_samples/; revision=13664
This commit is contained in:
parent
0bd961780d
commit
1983c90952
|
@ -121,6 +121,7 @@ int main(int argc, char **argv) {
|
|||
char input_path[512], output_path[512], chkpt_path[512];
|
||||
MFILE out;
|
||||
FILE* state, *infile;
|
||||
BOINC_OPTIONS options;
|
||||
|
||||
for (i=0; i<argc; i++) {
|
||||
if (!strcmp(argv[i], "-early_exit")) early_exit = true;
|
||||
|
@ -132,7 +133,11 @@ int main(int argc, char **argv) {
|
|||
}
|
||||
}
|
||||
|
||||
retval = boinc_init();
|
||||
memset(&options, 0, sizeof(options));
|
||||
boinc_options_defaults(options);
|
||||
options.backwards_compatible_graphics = true;
|
||||
|
||||
retval = boinc_init_options(&options);
|
||||
if (retval) exit(retval);
|
||||
|
||||
// open the input file (resolve logical name first)
|
||||
|
|
Loading…
Reference in New Issue