diff options
author | Marek Olšák <maraeo@gmail.com> | 2012-02-12 13:06:15 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2012-02-12 13:07:51 +0100 |
commit | 6cd9159cea628c542d2233b54f6babb74e45f83c (patch) | |
tree | 065ab79a7481b969608933c356ab6db0962cc0ed /src/gallium/drivers | |
parent | 6d89a795a551f63fc3fa0a9406cf7a9e8b6cb53d (diff) |
r300g: always fail to create a multisample resource
Just to be safe.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/r300/r300_texture.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |