diff options
author | Aapo Tahkola <[email protected]> | 2005-02-19 02:25:53 +0000 |
---|---|---|
committer | Aapo Tahkola <[email protected]> | 2005-02-19 02:25:53 +0000 |
commit | 42896b2a18a89c74a2f95e491bed0b7352bef0aa (patch) | |
tree | bb40fef885acfd0c9676ee10f8719bc23b3f6c08 /src/mesa/drivers/dri/r300/r300_render.c | |
parent | 10b892af96afa4fd8493810f5cf84a97c2e4adaa (diff) |
Fix for buffer overrun caused by ALLOC_STATE not having args surrounded by parenthesis. Can you see it? HINT: Anything texture related should now work slightly better. And yes it took me several hours to find it.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_render.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_render.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_render.c b/src/mesa/drivers/dri/r300/r300_render.c index 71977e7e416..2a57828e05c 100644 --- a/src/mesa/drivers/dri/r300/r300_render.c +++ b/src/mesa/drivers/dri/r300/r300_render.c @@ -614,10 +614,10 @@ static GLboolean r300_run_vb_render(GLcontext *ctx, struct vertex_buffer *VB = &tnl->vb; int i, j; LOCAL_VARS - + if (RADEON_DEBUG & DEBUG_PRIMS) fprintf(stderr, "%s\n", __FUNCTION__); - + r300ReleaseArrays(ctx); r300EmitArrays(ctx, GL_FALSE); @@ -634,7 +634,6 @@ static GLboolean r300_run_vb_render(GLcontext *ctx, reg_start(0x4f18,0); e32(0x00000003); - r300EmitState(rmesa); rmesa->state.Elts = VB->Elts; |