Browse Source

can't use DynamicTextFont if we don't have FreeType installed

Josh Wilson 19 years ago
parent
commit
a5dd3a94ba
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/text/config_text.cxx

+ 2 - 0
panda/src/text/config_text.cxx

@@ -182,9 +182,11 @@ ConfigVariableEnum<Texture::WrapMode> text_wrap_mode
 ("text-wrap-mode", Texture::WM_border_color,
  PRC_DESC("The default wrap mode for dynamic text fonts"));
 
+#ifdef HAVE_FREETYPE
 ConfigVariableEnum<DynamicTextFont::RenderMode> text_render_mode
 ("text-render-mode", DynamicTextFont::RM_texture,
  PRC_DESC("The default render mode for dynamic text fonts"));
+#endif