[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13715] trunk/blender/source/blender/src/ drawimage.c: Images in the image editor were being draw with the wrong glBlendFunc() command

Joseph Eagar joeedh at gmail.com
Sat Feb 16 17:44:41 CET 2008


Revision: 13715
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13715
Author:   joeedh
Date:     2008-02-16 17:44:41 +0100 (Sat, 16 Feb 2008)

Log Message:
-----------
Images in the image editor were being draw with the wrong glBlendFunc() command
in draw-alpha mode. This would cause key alpha images to draw badly.

Modified Paths:
--------------
    trunk/blender/source/blender/src/drawimage.c

Modified: trunk/blender/source/blender/src/drawimage.c
===================================================================
--- trunk/blender/source/blender/src/drawimage.c	2008-02-16 16:35:47 UTC (rev 13714)
+++ trunk/blender/source/blender/src/drawimage.c	2008-02-16 16:44:41 UTC (rev 13715)
@@ -2060,7 +2060,7 @@
 							if(sima->flag & SI_USE_ALPHA) {
 								sima_draw_alpha_backdrop(sima, x1_rep, y1_rep, (float)ibuf->x, (float)ibuf->y);
 								glEnable(GL_BLEND);
-								glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
+								glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
 							}
 							
 							/* detect if we need to redo the curve map. 





More information about the Bf-blender-cvs mailing list