Move some code out of the render_loop function and into a 1-time init
routine
This commit is contained in:
@@ -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?
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user