Module: wine Branch: master Commit: 6e4ecdf854059108b789c4dde69c1df816a7589d URL: http://source.winehq.org/git/wine.git/?a=commit;h=6e4ecdf854059108b789c4dde6...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Oct 9 20:41:49 2012 +0200
wined3d: Implement WINED3DSIH_IADD in the GLSL shader backend.
---
dlls/wined3d/glsl_shader.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c index 708c6d8..ed5db06 100644 --- a/dlls/wined3d/glsl_shader.c +++ b/dlls/wined3d/glsl_shader.c @@ -2198,6 +2198,7 @@ static void shader_glsl_binop(const struct wined3d_shader_instruction *ins) case WINED3DSIH_ADD: op = '+'; break; case WINED3DSIH_AND: op = '&'; break; case WINED3DSIH_DIV: op = '/'; break; + case WINED3DSIH_IADD: op = '+'; break; case WINED3DSIH_MUL: op = '*'; break; case WINED3DSIH_SUB: op = '-'; break; default: @@ -5173,7 +5174,7 @@ static const SHADER_HANDLER shader_glsl_instruction_handler_table[WINED3DSIH_TAB /* WINED3DSIH_FRC */ shader_glsl_map2gl, /* WINED3DSIH_FTOI */ NULL, /* WINED3DSIH_GE */ NULL, - /* WINED3DSIH_IADD */ NULL, + /* WINED3DSIH_IADD */ shader_glsl_binop, /* WINED3DSIH_IEQ */ NULL, /* WINED3DSIH_IF */ shader_glsl_if, /* WINED3DSIH_IFC */ shader_glsl_ifc,