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/Platform/Video/GFXDeviceDraw.cpp

Diff revisions: vs.
  @@ -178,10 +178,12 @@
178 178
179 179 processVisibleNode(*node, nodeCount, pkg.isOcclusionCullable());
180 180
181 - for (size_t cmdIdx = 0; cmdIdx < pkg.drawCommandCount(); ++cmdIdx) {
182 - const GenericDrawCommand& cmd = pkg.drawCommand(cmdIdx);
183 - for (U32 i = 0; i < cmd.drawCount(); ++i) {
184 - _drawCommandsCache[cmdCount++].set(cmd.cmd());
181 + for (I32 cmdIdx = 0; cmdIdx < pkg.drawCommandCount(); ++cmdIdx) {
182 + const GFX::DrawCommand& cmd = pkg.drawCommand(cmdIdx);
183 + for (const GenericDrawCommand& drawCmd : cmd._drawCommands) {
184 + for (U32 i = 0; i < drawCmd.drawCount(); ++i) {
185 + _drawCommandsCache[cmdCount++].set(drawCmd.cmd());
186 + }
185 187 }
186 188 }
187 189 }