glamor: Call glamor_glyphs_init from glamor_create_screen_resources

The comment above glamor_glyphs_init was already saying so.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Michel Dänzer 2014-09-10 16:20:45 +09:00 committed by Keith Packard
parent 54a1d4db82
commit 0acff6e437

View File

@ -296,6 +296,11 @@ glamor_create_screen_resources(ScreenPtr screen)
ret = screen->CreateScreenResources(screen);
screen->CreateScreenResources = glamor_create_screen_resources;
if (!glamor_glyphs_init(screen)) {
ErrorF("Failed to initialize glyphs\n");
ret = FALSE;
}
if (!glamor_realize_glyph_caches(screen)) {
ErrorF("Failed to initialize glyph cache\n");
ret = FALSE;
@ -518,7 +523,6 @@ glamor_init(ScreenPtr screen, unsigned int flags)
glamor_init_gradient_shader(screen);
#endif
glamor_pixmap_init(screen);
glamor_glyphs_init(screen);
glamor_sync_init(screen);
glamor_priv->screen = screen;