st/nine: D3DRS_FILLMODE set to 0 is D3DFILL_SOLID
authorTiziano Bacocco <tizbac2@gmail.com>
Mon, 19 Jan 2015 14:40:22 +0000 (15:40 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 5 Feb 2015 23:07:19 +0000 (00:07 +0100)
Reviewed-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Tiziano Bacocco <tizbac2@gmail.com>
include/D3D9/d3d9types.h
src/gallium/state_trackers/nine/nine_pipe.h

index e96f751be4b74bd23a8588dfafe38cf7e8988b35..52fbc99dad787e423f7e275c98581e3794896527 100644 (file)
@@ -573,6 +573,7 @@ typedef enum _D3DDEVTYPE {
 } D3DDEVTYPE;
 
 typedef enum _D3DFILLMODE {
+    D3DFILL_SOLID_ZERO = 0,
     D3DFILL_POINT = 1,
     D3DFILL_WIREFRAME = 2,
     D3DFILL_SOLID = 3
index c1269b3d0d9a5918f4432072b412f00e1d33ceee..9521d1a654292b79b42b91914319cf1078cb9fd4 100644 (file)
@@ -516,6 +516,7 @@ d3dfillmode_to_pipe_polygon_mode(D3DFILLMODE mode)
     case D3DFILL_POINT:     return PIPE_POLYGON_MODE_POINT;
     case D3DFILL_WIREFRAME: return PIPE_POLYGON_MODE_LINE;
     case D3DFILL_SOLID:     return PIPE_POLYGON_MODE_FILL;
+    case D3DFILL_SOLID_ZERO:return PIPE_POLYGON_MODE_FILL;
     default:
         assert(0);
         return PIPE_POLYGON_MODE_FILL;