Should probably have gl context stuff in its own unit separate from store, but, don't close the gl context before anything that might still want to do gl operations
void fpcrtl_halt(int num) {
__coverity_panic__();
}
int fpcrtl_abs(int num) {
return num >= 0 ? num : -num;
}