mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 02:10:24 +01:00
st/mesa: only resolve if number of samples is > 1
Marek: this fixes a firefox crash and maybe even:
https://bugs.freedesktop.org/show_bug.cgi?id=45943
NOTE: This is a candidate for the 8.0 branch.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Marek Olšák <maraeo@gmail.com>
(cherry picked from commit 094eeff199)
This commit is contained in:
parent
a2186a2ea6
commit
9e98d38e58
1 changed files with 2 additions and 1 deletions
|
|
@ -178,7 +178,8 @@ st_BlitFramebuffer(struct gl_context *ctx,
|
|||
st->pipe->render_condition(st->pipe, NULL, 0);
|
||||
}
|
||||
|
||||
if (readFB->Visual.sampleBuffers > drawFB->Visual.sampleBuffers) {
|
||||
if (readFB->Visual.sampleBuffers > drawFB->Visual.sampleBuffers &&
|
||||
readFB->Visual.samples > 1) {
|
||||
struct pipe_resolve_info info;
|
||||
|
||||
if (dstX0 < dstX1) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue