Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 948 vs 949 for /trunk/Source Code/Environment/Terrain/Terrain.cpp

Diff revisions: vs.
  @@ -137,11 +137,11 @@
137 137
138 138 cameraUpdated = false;
139 139 }
140 -
141 - GenericDrawCommand cmd = pkg.drawCommand(0);
142 - cmd.drawCount(tessellator.renderDepth());
143 - pkg.drawCommand(0, cmd);
144 -
140 + {
141 + GenericDrawCommand cmd = pkg.drawCommand(0, 0);
142 + cmd.drawCount(tessellator.renderDepth());
143 + pkg.drawCommand(0, 0, cmd);
144 + }
145 145 U32 offset = to_U32(stageIndex * Terrain::MAX_RENDER_NODES);
146 146
147 147 STUBBED("This may cause stalls. Profile! -Ionut");
  @@ -154,7 +154,7 @@
154 154
155 155 if (renderStagePass.stage() == RenderStage::DISPLAY) {
156 156 // draw infinite plane
157 - assert(pkg.drawCommand(1).drawCount() == 1u);
157 + assert(pkg.drawCommand(1, 0).drawCount() == 1u);
158 158
159 159 const Pipeline& pipeline = pkg.pipeline(1);
160 160 PipelineDescriptor descriptor = pipeline.toDescriptor();
  @@ -165,10 +165,10 @@
165 165 pkg.pipeline(1, _context.newPipeline(descriptor));
166 166
167 167 U16 state = _drawBBoxes ? 1 : 0;
168 - for (size_t i = 2; i < pkg.drawCommandCount(); ++i) {
169 - GenericDrawCommand cmd = pkg.drawCommand(i);
168 + for (I32 i = 2; i < pkg.drawCommandCount(); ++i) {
169 + GenericDrawCommand cmd = pkg.drawCommand(i, 0);
170 170 cmd.drawCount(state);
171 - pkg.drawCommand(i, cmd);
171 + pkg.drawCommand(i, 0, cmd);
172 172 }
173 173 }
174 174