glamor: Route UnrealizeGlyph to glamor_glyph_unrealize.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
This commit is contained in:
Zhigang Gong 2011-08-30 18:24:53 +08:00
parent 1665962270
commit f08988455c
2 changed files with 6 additions and 0 deletions

View File

@ -359,6 +359,9 @@ glamor_init(ScreenPtr screen, unsigned int flags)
ps->CreatePicture = glamor_create_picture;
glamor_priv->saved_destroy_picture = ps->DestroyPicture;
ps->DestroyPicture = glamor_destroy_picture;
glamor_priv->saved_unrealize_glyph = ps->UnrealizeGlyph;
ps->UnrealizeGlyph = glamor_glyph_unrealize;
#endif
glamor_init_solid_shader(screen);
glamor_init_tile_shader(screen);

View File

@ -205,6 +205,7 @@ typedef struct glamor_screen_private {
TrianglesProcPtr saved_triangles;
CreatePictureProcPtr saved_create_picture;
DestroyPictureProcPtr saved_destroy_picture;
UnrealizeGlyphProcPtr saved_unrealize_glyph;
int yInverted;
int screen_fbo;
@ -828,6 +829,8 @@ void glamor_glyphs(CARD8 op,
INT16 xSrc,
INT16 ySrc, int nlist, GlyphListPtr list, GlyphPtr * glyphs);
void
glamor_glyph_unrealize (ScreenPtr screen, GlyphPtr glyph);
/* glamor_setspans.c */
void glamor_set_spans(DrawablePtr drawable, GCPtr gc, char *src,
DDXPointPtr points, int *widths, int n, int sorted);