0

Move some code out of the render_loop function and into a 1-time init

routine
This commit is contained in:
Andrew Chin
2011-03-20 21:13:17 -04:00
parent 4e9985c611
commit 329c7557f6
3 changed files with 41 additions and 22 deletions

View File

@@ -33,4 +33,10 @@ initc_overviewer(void)
(void)Py_InitModule("c_overviewer", COverviewerMethods);
/* for numpy */
import_array();
/* initialize some required variables in iterage.c */
if (init_chunk_render()) {
fprintf(stderr, "failed to init_chunk_render\n");
exit(1); // TODO better way to indicate error?
}
}