"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "source/blender/blenfont/intern/blf_glyph.c" between
blender-2.93.0.tar.xz and blender-2.93.1.tar.xz

About: Blender is a 3D graphics creation suite allowing modeling, animation, rendering, post-production, realtime interactive 3D and game creation and playback with cross-platform compatibility. LTS (Long Term Support) release.

blf_glyph.c  (blender-2.93.0.tar.xz):blf_glyph.c  (blender-2.93.1.tar.xz)
skipping to change at line 509 skipping to change at line 509
int w = font->tex_size_max; int w = font->tex_size_max;
int h = bitmap_len / w + 1; int h = bitmap_len / w + 1;
gc->bitmap_len_alloc = w * h; gc->bitmap_len_alloc = w * h;
gc->bitmap_result = MEM_reallocN(gc->bitmap_result, (size_t)gc->bitmap_len _alloc); gc->bitmap_result = MEM_reallocN(gc->bitmap_result, (size_t)gc->bitmap_len _alloc);
/* Keep in sync with the texture. */ /* Keep in sync with the texture. */
if (gc->texture) { if (gc->texture) {
GPU_texture_free(gc->texture); GPU_texture_free(gc->texture);
} }
gc->texture = GPU_texture_create_1d_array(__func__, w, h, 1, GPU_R8, NULL) ; gc->texture = GPU_texture_create_2d(__func__, w, h, 1, GPU_R8, NULL);
gc->bitmap_len_landed = 0; gc->bitmap_len_landed = 0;
} }
memcpy(&gc->bitmap_result[gc->bitmap_len], g->bitmap, (size_t)buff_size); memcpy(&gc->bitmap_result[gc->bitmap_len], g->bitmap, (size_t)buff_size);
gc->bitmap_len = bitmap_len; gc->bitmap_len = bitmap_len;
gc->glyphs_len_free--; gc->glyphs_len_free--;
g->glyph_cache = gc; g->glyph_cache = gc;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)