diff --git a/src/mesa/main/renderbuffer.c b/src/mesa/main/renderbuffer.c index 8343544a5fe..58fec01fc75 100644 --- a/src/mesa/main/renderbuffer.c +++ b/src/mesa/main/renderbuffer.c @@ -627,7 +627,7 @@ _mesa_update_renderbuffer_surface(struct gl_context *ctx, than or equal to samples and no more than the next larger sample count supported by the implementation. */ - for (unsigned i = rb->rtt_nr_samples + 1; i <= ctx->Const.MaxFramebufferSamples; i++) { + for (unsigned i = rb->rtt_nr_samples; i <= ctx->Const.MaxFramebufferSamples; i++) { if (!ctx->st->screen->is_format_supported(ctx->st->screen, format, resource->target, i, i, resource->bind)) continue; nr_samples = i;