summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_render.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-11-14 18:57:14 +0100
committerMarek Olšák <maraeo@gmail.com>2010-11-20 16:20:48 +0100
commitffb732d8bd51f0a40379590a6485de2a56a2a306 (patch)
tree5e386ee294515373bdc73e1569b3a5b86ab1269f /src/gallium/drivers/r300/r300_render.c
parentb6b91fa02911f5dfc5d528d822674ee5557800d9 (diff)
downloadexternal_mesa3d-ffb732d8bd51f0a40379590a6485de2a56a2a306.zip
external_mesa3d-ffb732d8bd51f0a40379590a6485de2a56a2a306.tar.gz
external_mesa3d-ffb732d8bd51f0a40379590a6485de2a56a2a306.tar.bz2
r300g: fix rendering with no vertex elements
Fixes glsl-vs-point-size, although I meant to fix glsl-novertexdata. Since swrast fails glsl-novertexdata too, I guess it's a core issue.
Diffstat (limited to 'src/gallium/drivers/r300/r300_render.c')
-rw-r--r--src/gallium/drivers/r300/r300_render.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index 000f8a0..60700cf 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -643,10 +643,6 @@ static void r300_draw_vbo(struct pipe_context* pipe,
return;
}
- if (!r300->velems->count || !r300->vertex_buffer_count) {
- return;
- }
-
/* Index buffer range checking. */
if (indexed) {
assert(r300->index_buffer.offset % r300->index_buffer.index_size == 0);