From cd25ab899a49babb4e78b5a82de2951e70a8a6f6 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 7 Sep 2002 01:06:40 +0000 Subject: [PATCH] Fix fonts+alpha channel on Win32 (again) --- Graphics/Draw.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Graphics/Draw.cpp b/Graphics/Draw.cpp index 44edc5a6ed..c0115b83ee 100644 --- a/Graphics/Draw.cpp +++ b/Graphics/Draw.cpp @@ -1,4 +1,4 @@ -// $Id: Draw.cpp,v 1.32 2002-05-20 18:28:25 geuzaine Exp $ +// $Id: Draw.cpp,v 1.33 2002-09-07 01:06:40 geuzaine Exp $ // // Copyright (C) 1997 - 2002 C. Geuzaine, J.-F. Remacle // @@ -38,14 +38,10 @@ void Draw3d(void){ if(CTX.alpha){ glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_BLEND); +#ifndef WIN32 + // This seems to perturb the font rendering on Windows... And + // everything seems to work fine without, so... glEnable(GL_ALPHA); - } - else{ -#if 0 - // Rigorously, this could be disabled. But it seems to perturb the - // font rendering on Windows (and Mac?) - glDisable(GL_BLEND); - glDisable(GL_ALPHA); #endif } glPolygonOffset(1.0, 1); -- GitLab