r300g: always fail to create a multisample resource
authorMarek Olšák <maraeo@gmail.com>
Sun, 12 Feb 2012 12:06:15 +0000 (13:06 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sun, 12 Feb 2012 12:07:51 +0000 (13:07 +0100)
Just to be safe.

src/gallium/drivers/r300/r300_texture.c

index 99678bc89a8292a92cc74e69ef518136210e03c0..289c71f0e653d07e79889107b76556bb378a6dbb 100644 (file)
@@ -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;