Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 943 vs 947 for /trunk/Source Code/Environment/Vegetation/Vegetation.cpp

Diff revisions: vs.
  @@ -101,7 +101,7 @@
101 101 Material_ptr vegMaterial = CreateResource<Material>(_parentCache, vegetationMaterial);
102 102
103 103 //vegMaterial->setShaderLoadThreaded(false);
104 - vegMaterial->setDiffuse(DefaultColours::WHITE());
104 + vegMaterial->setDiffuse(DefaultColours::WHITE);
105 105 vegMaterial->setSpecular(vec4<F32>(0.1f, 0.1f, 0.1f, 1.0f));
106 106 vegMaterial->setShininess(5.0f);
107 107 vegMaterial->setShadingMode(Material::ShadingMode::BLINN_PHONG);
  @@ -365,7 +365,7 @@
365 365 drawCmd._drawCommands.push_back(_cullDrawCommand);
366 366 GFX::AddDrawCommands(cmdBuffer, drawCmd);
367 367
368 - _context.flushCommandBuffer(cmdBuffer);
368 + _context.flushAndClearCommandBuffer(cmdBuffer);
369 369
370 370 //_cullDrawCommand.setInstanceCount(_instanceCountTrees);
371 371 //_cullDrawCommand.sourceBuffer(_treeGPUBuffer);