Hooked up projection matrix - the gears actually rotate !
authorVladimir Dergachev <volodya@freedesktop.org>
Thu, 30 Dec 2004 10:27:04 +0000 (10:27 +0000)
committerVladimir Dergachev <volodya@freedesktop.org>
Thu, 30 Dec 2004 10:27:04 +0000 (10:27 +0000)
src/mesa/drivers/dri/r300/r300_render.c

index 93c3a63e478864e8ab4c4453433284879123acdf..cbd8f192a7aba28392668bad3dfd1efda6945178 100644 (file)
@@ -277,6 +277,8 @@ static GLboolean r300_run_flat_render(GLcontext *ctx,
        
    reg_start(0x20b0,0);
        e32(0x0000043f);
+   
+   memcpy(FLAT_COLOR_PIPELINE.vertex_shader.parameters.body.f, ctx->_ModelProjectMatrix.m, 16*4);
  
    program_pipeline(PASS_PREFIX &FLAT_COLOR_PIPELINE);