From: Derek Foreman Date: Fri, 30 May 2003 04:40:31 +0000 (+0000) Subject: enable alpha blending for fonts X-Git-Tag: gl2~18 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=a165efa8a2c610127a7b471611cc5afcebba186d;p=dana%2Fopenbox.git enable alpha blending for fonts --- 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; }