PATCH: Add support for D3DBLEND_ONE for D3DRENDERSTATE_{DEST/SRC}BLEND

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Modified files :
dlls/ddraw/mesa.c

Changelog :
Add support for D3DBLEND_ONE for D3DRENDERSTATE_{DEST/SRC}BLEND.

Christian Costa   titan.costa@wanadoo.fr

Index: mesa.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/mesa.c,v
retrieving revision 1.9
diff -u -r1.9 mesa.c
--- mesa.c	21 Nov 2002 21:04:16 -0000	1.9
+++ mesa.c	3 Dec 2002 19:12:43 -0000
@@ -144,6 +144,9 @@
 
 	    case D3DRENDERSTATE_SRCBLEND:           /* 19 */
 	        switch ((D3DBLEND) dwRenderState) {
+		    case D3DBLEND_ONE:
+		          rs->src = GL_ONE;
+			  break;
 		    case D3DBLEND_SRCALPHA:
 		          rs->src = GL_SRC_ALPHA;
 			  break;
@@ -155,6 +158,9 @@
 
 	    case D3DRENDERSTATE_DESTBLEND:          /* 20 */
 	        switch ((D3DBLEND) dwRenderState) {
+		    case D3DBLEND_ONE:
+		        rs->dst = GL_ONE;
+			break;
 		    case D3DBLEND_INVSRCALPHA:
 		        rs->dst = GL_ONE_MINUS_SRC_ALPHA;
 			break;

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux