From f856b3f10f5c0feb5243d3f78c733099f47e1c54 Mon Sep 17 00:00:00 2001 From: Aapo Tahkola Date: Fri, 28 Jan 2005 09:57:06 +0000 Subject: Add basic sceleton for vertex programs + some other fixes --- src/mesa/drivers/dri/r300/r300_render.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers/dri/r300/r300_render.c') diff --git a/src/mesa/drivers/dri/r300/r300_render.c b/src/mesa/drivers/dri/r300/r300_render.c index 35b67aeaa0..d1dd82ad91 100644 --- a/src/mesa/drivers/dri/r300/r300_render.c +++ b/src/mesa/drivers/dri/r300/r300_render.c @@ -206,7 +206,12 @@ static void r300_render_immediate_primitive(r300ContextPtr rmesa, #endif if(type<0)return; - + + if(!VB->ObjPtr){ + fprintf(stderr, "FIXME: Dont know how to handle GL_ARB_vertex_buffer_object " + "correctly\n"); + return; + } /* A packet cannot have more than 16383 data words.. */ if(((end-start)*8+4*rmesa->state.texture.tc_count)>16380){ fprintf(stderr, "%s:%s: Too many vertices to paint. Fix me !\n"); @@ -274,7 +279,7 @@ static GLboolean r300_run_immediate_render(GLcontext *ctx, r300TexObjPtr t=to->DriverData; LOCAL_VARS - + /* Update texture state - needs to be done only when actually changed.. All the time for now.. */ -- cgit v1.2.3