draw: Fix for EMIT_4UB case
authorJakob Bornecrantz <jakob@tungstengraphics.com>
Tue, 27 May 2008 10:59:46 +0000 (12:59 +0200)
committerJakob Bornecrantz <jakob@tungstengraphics.com>
Tue, 27 May 2008 11:28:47 +0000 (13:28 +0200)
src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c

index 2f2e7195b3fd309279ba953e0a5d3a501194b585..c6249b4b41044503e25929ff86fda568fa116876 100644 (file)
@@ -143,7 +143,10 @@ static void fse_prepare( struct draw_pt_middle_end *middle,
             output_format = PIPE_FORMAT_R32_FLOAT;
             emit_sz = 1 * sizeof(float);
             vs_output = num_vs_outputs + 1;
-         
+            break;
+         case EMIT_4UB:
+            output_format = PIPE_FORMAT_B8G8R8A8_UNORM;
+            emit_sz = 4 * sizeof(ubyte);
             break;
          default:
             assert(0);