Fixes for martin's background mode commit - now works fine here on OS X
This commit is contained in:
parent
e776ecfdde
commit
792c4d602d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user