Explorar o código

use load_glyph() defined in parent class

David Rose %!s(int64=22) %!d(string=hai) anos
pai
achega
65f24e45ef
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      panda/src/text/dynamicTextFont.cxx

+ 1 - 4
panda/src/text/dynamicTextFont.cxx

@@ -308,10 +308,7 @@ update_filters() {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 DynamicTextGlyph *DynamicTextFont::
 DynamicTextGlyph *DynamicTextFont::
 make_glyph(int glyph_index) {
 make_glyph(int glyph_index) {
-  int error = FT_Load_Glyph(_face, glyph_index, FT_LOAD_RENDER);
-  if (error) {
-    text_cat.error()
-      << "Unable to render glyph " << glyph_index << "\n";
+  if (!load_glyph(glyph_index)) {
     return (DynamicTextGlyph *)NULL;
     return (DynamicTextGlyph *)NULL;
   }
   }