Fixes for martin's background mode commit - now works fine here on OS X

This commit is contained in:
Matt Ebb 2009-11-11 04:38:37 +00:00
parent e776ecfdde
commit 792c4d602d
2 changed files with 3 additions and 2 deletions

@ -131,7 +131,8 @@ void blf_glyph_cache_free(GlyphCacheBLF *gc)
}
}
glDeleteTextures(gc->cur_tex+1, gc->textures);
if (gc->cur_tex+1 > 0)
glDeleteTextures(gc->cur_tex+1, gc->textures);
free((void *)gc->textures);
MEM_freeN(gc);
}

@ -329,7 +329,7 @@ int WM_read_homefile(bContext *C, wmOperator *op)
wm_init_userdef();
/* When loading factory settings, the reset solid OpenGL lights need to be applied. */
GPU_default_lights();
if (!G.background) GPU_default_lights();
/* XXX */
G.save_over = 0; // start with save preference untitled.blend