From 0932129993f30037b1dbb4ceba8a08dbe84cb367 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 17 Sep 2012 21:48:53 +0200 Subject: [PATCH] wined3d: Implement WINED3DSIH_EMIT in the GLSL shader backend. --- dlls/wined3d/glsl_shader.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c index 97a6109d39a..afbdb22d76f 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,