From 6cd9159cea628c542d2233b54f6babb74e45f83c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 12 Feb 2012 13:06:15 +0100 Subject: [PATCH] r300g: always fail to create a multisample resource Just to be safe. --- src/gallium/drivers/r300/r300_texture.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c index 99678bc89a8..289c71f0e65 100644 --- a/src/gallium/drivers/r300/r300_texture.c +++ b/src/gallium/drivers/r300/r300_texture.c @@ -883,6 +883,9 @@ r300_texture_create_object(struct r300_screen *rscreen, return NULL; } + if (base->nr_samples > 1) + return NULL; + pipe_reference_init(&tex->b.b.b.reference, 1); tex->b.b.b.screen = &rscreen->screen; tex->b.b.b.usage = base->usage; -- 2.30.2