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/OpenGL/GLWrapper.cpp

Diff revisions: vs.
  @@ -937,7 +937,8 @@
937 937
938 938 void GL_API::flushCommandBuffer(GFX::CommandBuffer& commandBuffer) {
939 939 U32 drawCallCount = 0;
940 - for (const std::shared_ptr<GFX::Command>& cmd : commandBuffer()) {
940 + const vectorImpl<std::shared_ptr<GFX::Command>>& commands = commandBuffer();
941 + for (const std::shared_ptr<GFX::Command>& cmd : commands) {
941 942 switch (cmd->_type) {
942 943 case GFX::CommandType::BEGIN_RENDER_PASS: {
943 944 GFX::BeginRenderPassCommand* crtCmd = static_cast<GFX::BeginRenderPassCommand*>(cmd.get());