Fix drawing glyphs in OpenGL

This commit is contained in:
Ted John 2018-01-24 18:49:30 +00:00
parent 02d783a993
commit df26354376
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ BasicTextureInfo TextureCache::GetOrLoadGlyphTexture(uint32 image, uint8 * palet
{
GlyphId glyphId;
glyphId.Image = image;
std::copy_n((uint8 *)&glyphId.Palette, sizeof(glyphId.Palette), palette);
std::copy_n(palette, sizeof(glyphId.Palette), (uint8 *)&glyphId.Palette);
auto kvp = _glyphTextureMap.find(glyphId);
if (kvp != _glyphTextureMap.end())