Module: wine Branch: master Commit: 0932129993f30037b1dbb4ceba8a08dbe84cb367 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0932129993f30037b1dbb4ceba...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Sep 17 21:48:53 2012 +0200
wined3d: Implement WINED3DSIH_EMIT in the GLSL shader backend.
---
dlls/wined3d/glsl_shader.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c index 97a6109..afbdb22 100644 --- a/dlls/wined3d/glsl_shader.c +++ b/dlls/wined3d/glsl_shader.c @@ -2989,6 +2989,11 @@ static void shader_glsl_else(const struct wined3d_shader_instruction *ins) shader_addline(ins->ctx->buffer, "} else {\n"); }
+static void shader_glsl_emit(const struct wined3d_shader_instruction *ins) +{ + shader_addline(ins->ctx->buffer, "EmitVertex();\n"); +} + static void shader_glsl_break(const struct wined3d_shader_instruction *ins) { shader_addline(ins->ctx->buffer, "break;\n"); @@ -5050,7 +5055,7 @@ static const SHADER_HANDLER shader_glsl_instruction_handler_table[WINED3DSIH_TAB /* WINED3DSIH_DSX */ shader_glsl_map2gl, /* WINED3DSIH_DSY */ shader_glsl_map2gl, /* WINED3DSIH_ELSE */ shader_glsl_else, - /* WINED3DSIH_EMIT */ NULL, + /* WINED3DSIH_EMIT */ shader_glsl_emit, /* WINED3DSIH_ENDIF */ shader_glsl_end, /* WINED3DSIH_ENDLOOP */ shader_glsl_end, /* WINED3DSIH_ENDREP */ shader_glsl_end,