Browse Source

GlyphCache multithreading fix.

tags/2021-05-28
jules 12 years ago
parent
commit
6c17d3ca74
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/juce_graphics/native/juce_RenderingHelpers.h

+ 2
- 1
modules/juce_graphics/native/juce_RenderingHelpers.h View File

@@ -248,7 +248,8 @@ private:
{
CachedGlyphType* const glyph = glyphs.getUnchecked(i);
if (glyph->lastAccessCount <= oldestCounter)
if (glyph->lastAccessCount <= oldestCounter
&& glyph->getReferenceCount() == 1)
{
oldestCounter = glyph->lastAccessCount;
oldest = glyph;


Loading…
Cancel
Save