[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56766] trunk/blender/source/blender/ editors/interface/interface_regions.c: Fix #35342: multisample antialiasing makes tooltips look blurry.
Brecht Van Lommel
brechtvanlommel at pandora.be
Mon May 13 15:45:45 CEST 2013
Revision: 56766
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56766
Author: blendix
Date: 2013-05-13 13:45:45 +0000 (Mon, 13 May 2013)
Log Message:
-----------
Fix #35342: multisample antialiasing makes tooltips look blurry.
Modified Paths:
--------------
trunk/blender/source/blender/editors/interface/interface_regions.c
Modified: trunk/blender/source/blender/editors/interface/interface_regions.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface_regions.c 2013-05-13 13:44:20 UTC (rev 56765)
+++ trunk/blender/source/blender/editors/interface/interface_regions.c 2013-05-13 13:45:45 UTC (rev 56766)
@@ -365,8 +365,13 @@
float background_color[3];
float tone_bg;
- int i;
+ int i, multisample_enabled;
+ /* disable AA, makes widgets too blurry */
+ multisample_enabled = glIsEnabled(GL_MULTISAMPLE_ARB);
+ if (multisample_enabled)
+ glDisable(GL_MULTISAMPLE_ARB);
+
/* draw background */
ui_draw_tooltip_background(UI_GetStyle(), NULL, &bbox);
@@ -402,6 +407,9 @@
bbox.ymin -= data->lineh + data->spaceh;
bbox.ymax -= data->lineh + data->spaceh;
}
+
+ if (multisample_enabled)
+ glEnable(GL_MULTISAMPLE_ARB);
}
static void ui_tooltip_region_free_cb(ARegion *ar)
More information about the Bf-blender-cvs
mailing list