diff options
author | Ian Romanick <[email protected]> | 2013-11-05 14:01:31 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-01-15 10:02:48 -0800 |
commit | 065bd6ffc23c9cfef9b10418fb06233a912d6471 (patch) | |
tree | 84b2739895759fc3abda0da87c4157a2c18dc9f3 /src/mesa/main | |
parent | fbc0c9a553ecdc1d6a78a44f7c2c764dd5f172ad (diff) |
mesa: Eliminate parameters to dd_function_table::Viewport
No driver uses them. They will just be annoying in future patches.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/dd.h | 2 | ||||
-rw-r--r-- | src/mesa/main/viewport.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 31dc651d0ef..e77b67ed7d7 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -547,7 +547,7 @@ struct dd_function_table { struct gl_texture_object *texObj, GLenum pname, const GLfloat *params); /** Set the viewport */ - void (*Viewport)(struct gl_context *ctx, GLint x, GLint y, GLsizei w, GLsizei h); + void (*Viewport)(struct gl_context *ctx); /*@}*/ diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c index 91578ba9d04..7ea1d5f63a5 100644 --- a/src/mesa/main/viewport.c +++ b/src/mesa/main/viewport.c @@ -99,7 +99,7 @@ _mesa_set_viewport(struct gl_context *ctx, GLint x, GLint y, /* Many drivers will use this call to check for window size changes * and reallocate the z/stencil/accum/etc buffers if needed. */ - ctx->Driver.Viewport(ctx, x, y, width, height); + ctx->Driver.Viewport(ctx); } } |