Module: wine Branch: master Commit: 31d8b2762565b8292516b2383484276a171e5c90 URL: http://source.winehq.org/git/wine.git/?a=commit;h=31d8b2762565b8292516b23834...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Wed Nov 26 16:14:39 2008 +0100
wined3d: Const correctness fixes for ati_fragment_shader.c.
---
dlls/wined3d/ati_fragment_shader.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/ati_fragment_shader.c b/dlls/wined3d/ati_fragment_shader.c index 4cb551b..b2fb23b 100644 --- a/dlls/wined3d/ati_fragment_shader.c +++ b/dlls/wined3d/ati_fragment_shader.c @@ -159,7 +159,9 @@ static const char *debug_rep(GLuint rep) { }
#define GLINFO_LOCATION (*gl_info) -static GLuint register_for_arg(DWORD arg, WineD3D_GL_Info *gl_info, unsigned int stage, GLuint *mod, GLuint *rep, GLuint tmparg) { +static GLuint register_for_arg(DWORD arg, const WineD3D_GL_Info *gl_info, + unsigned int stage, GLuint *mod, GLuint *rep, GLuint tmparg) +{ GLenum ret;
if(mod) *mod = GL_NONE; @@ -224,7 +226,8 @@ static GLuint register_for_arg(DWORD arg, WineD3D_GL_Info *gl_info, unsigned int return ret; }
-static GLuint find_tmpreg(struct texture_stage_op op[MAX_TEXTURES]) { +static GLuint find_tmpreg(const struct texture_stage_op op[MAX_TEXTURES]) +{ int lowest_read = -1; int lowest_write = -1; int i; @@ -284,7 +287,8 @@ static GLuint find_tmpreg(struct texture_stage_op op[MAX_TEXTURES]) { } }
-static GLuint gen_ati_shader(struct texture_stage_op op[MAX_TEXTURES], WineD3D_GL_Info *gl_info) { +static GLuint gen_ati_shader(const struct texture_stage_op op[MAX_TEXTURES], const WineD3D_GL_Info *gl_info) +{ GLuint ret = GL_EXTCALL(glGenFragmentShadersATI(1)); unsigned int stage; GLuint arg0, arg1, arg2, extrarg;