Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-28 17:05:15 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-28 17:05:15 +0400
commit0d7dbbb6e1fc0bb85d236ca1e04ff966f4ad39c9 (patch)
tree2bce40d958d1ac50361d6d3c58aab714dbb0a55b /source/blender/blenkernel/intern/image_gen.c
parentca33bea285c1ffe74e9f6d3c6b28d7b26ebc84ab (diff)
Fix #35884: crash opening .blend with generated color grid image and preview render.
Printing text on the color grid image would initialize font glyphs from a thread at the same time as the UI, causing conflicts. The freetype glyph renderer needs to be mutex locked because it uses a shared buffer internally even when rendering for different fonts. Also needed to change the image generate function to use the render monospace font to avoid conflicts in blenfont. What's still weak in the blenfont API is that there is no distinction between a font and a thread using that font to render with some particular size, style, etc.
Diffstat (limited to 'source/blender/blenkernel/intern/image_gen.c')
-rw-r--r--source/blender/blenkernel/intern/image_gen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/image_gen.c b/source/blender/blenkernel/intern/image_gen.c
index c31ec593e54..eda22a095ef 100644
--- a/source/blender/blenkernel/intern/image_gen.c
+++ b/source/blender/blenkernel/intern/image_gen.c
@@ -287,7 +287,7 @@ static void checker_board_text(unsigned char *rect, float *rect_float, int width
int x, y;
int pen_x, pen_y;
char text[3] = {'A', '1', '\0'};
- const int mono = blf_mono_font;
+ const int mono = blf_mono_font_render;
BLF_size(mono, 54, 72); /* hard coded size! */