From a165efa8a2c610127a7b471611cc5afcebba186d Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Fri, 30 May 2003 04:40:31 +0000 Subject: [PATCH] enable alpha blending for fonts --- render2/instance.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/render2/instance.c b/render2/instance.c index fc76ae91..3ffc544d 100644 --- a/render2/instance.c +++ b/render2/instance.c @@ -108,6 +108,8 @@ struct RrInstance *RrInstanceNew(Display *display, int screen) inst->surface_map = g_hash_table_new(g_int_hash, g_int_equal); assert(inst->glx_context); + glEnable(GL_BLEND); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); return inst; } -- 2.34.1