enable_fpexcept();
#endif
+#ifdef GFX_SW
+ gaw_sw_init();
+#endif
+
load_options("retroray.cfg");
app_resize(opt.xres, opt.yres);
app_vsync(opt.vsync);
destroy_font(uifont);
free(uifont);
+#ifdef GFX_SW
+ gaw_sw_destroy();
+#endif
+
cleanup_logger();
}
int numpix = x * y;
int prev_numpix = win_width * win_height;
- if(numpix > prev_numpix) {
+ printf("reshape(%d, %d)\n", x, y);
+
+ if(!framebuf || numpix > prev_numpix) {
void *tmp;
if(!(tmp = realloc(framebuf, numpix * sizeof *framebuf))) {
errormsg("failed to resize framebuffer to %dx%d\n", x, y);