mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
mesa: remove useless comments in the viewport code path
No need to explain why calling a driver callback is needed. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
8bfe451ed3
commit
4178cea06d
1 changed files with 2 additions and 10 deletions
|
|
@ -103,12 +103,8 @@ viewport(struct gl_context *ctx, GLint x, GLint y, GLsizei width,
|
|||
for (unsigned i = 0; i < ctx->Const.MaxViewports; i++)
|
||||
set_viewport_no_notify(ctx, i, x, y, width, height);
|
||||
|
||||
if (ctx->Driver.Viewport) {
|
||||
/* Many drivers will use this call to check for window size changes
|
||||
* and reallocate the z/stencil/accum/etc buffers if needed.
|
||||
*/
|
||||
if (ctx->Driver.Viewport)
|
||||
ctx->Driver.Viewport(ctx);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -159,12 +155,8 @@ _mesa_set_viewport(struct gl_context *ctx, unsigned idx, GLfloat x, GLfloat y,
|
|||
{
|
||||
set_viewport_no_notify(ctx, idx, x, y, width, height);
|
||||
|
||||
if (ctx->Driver.Viewport) {
|
||||
/* Many drivers will use this call to check for window size changes
|
||||
* and reallocate the z/stencil/accum/etc buffers if needed.
|
||||
*/
|
||||
if (ctx->Driver.Viewport)
|
||||
ctx->Driver.Viewport(ctx);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue