PATCH: Add support for POINT, WIREFRAME and SOLID fill modes

Christian Costa titan.costa at wanadoo.fr
Tue Sep 24 15:44:45 CDT 2002


Changelog :
   dlls/ddraw/mesa.c
   Add support for POINT, WIREFRAME and SOLID fill modes

Christian Costa   titan.costa at wanadoo.fr

-------------- next part --------------
Index: mesa.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/mesa.c,v
retrieving revision 1.6
diff -u -r1.6 mesa.c
--- mesa.c	31 May 2002 23:25:45 -0000	1.6
+++ mesa.c	24 Sep 2002 20:32:04 -0000
@@ -86,7 +86,14 @@
 
     case D3DRENDERSTATE_FILLMODE:           /*  8 */
       switch ((D3DFILLMODE) dwRenderState) {
+      case D3DFILL_POINT:
+        glPolygonMode(GL_FRONT_AND_BACK,GL_POINT);        
+        break;
+      case D3DFILL_WIREFRAME:
+        glPolygonMode(GL_FRONT_AND_BACK,GL_LINE); 
+        break;
       case D3DFILL_SOLID:
+        glPolygonMode(GL_FRONT_AND_BACK,GL_FILL); 
 	break;
 
       default:


More information about the wine-patches mailing list