diff options
author | Ilia Mirkin <[email protected]> | 2016-01-31 01:09:40 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-02-02 17:08:46 -0500 |
commit | 18f688d62a69501072d6783bbce34d1a755ef2c9 (patch) | |
tree | f7917b5e61d49c0fef9a2e0a1c94e2df39e39d9d /src | |
parent | 095da3b550be9f57a559ee3e549b15f3db4cf567 (diff) |
mesa: use default geometry's samples when there are no attachments
Whether multisampling is turned on depends, in part, on whether
attachments are themselves multisample surfaces. However when there are
no attachments, we should rely on the default geometry for this.
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 4043c4f2057..57f13411fdf 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -352,7 +352,7 @@ update_multisample(struct gl_context *ctx) ctx->Multisample._Enabled = GL_FALSE; if (ctx->Multisample.Enabled && ctx->DrawBuffer && - ctx->DrawBuffer->Visual.sampleBuffers) + _mesa_geometric_samples(ctx->DrawBuffer) > 0) ctx->Multisample._Enabled = GL_TRUE; } |