ProcessCreateQueue(mCreateFramebufferQueue);
}
-void EglGraphicsController::ProcessCommandBuffer(GLES::CommandBuffer& commandBuffer)
+void EglGraphicsController::ProcessCommandBuffer(const GLES::CommandBuffer& commandBuffer)
{
for(auto& cmd : commandBuffer.GetCommands())
{
ResolvePresentRenderTarget(cmd.presentRenderTarget.targetToPresent);
// push this command buffer to the discard queue
- mDiscardCommandBufferQueue.push(&commandBuffer);
+ mDiscardCommandBufferQueue.push(const_cast<GLES::CommandBuffer*>(&commandBuffer));
break;
}
case GLES::CommandType::EXECUTE_COMMAND_BUFFERS:
// within secondaries.
for(auto& buf : cmd.executeCommandBuffers.buffers)
{
- ProcessCommandBuffer(*static_cast<GLES::CommandBuffer*>(buf));
+ ProcessCommandBuffer(*static_cast<const GLES::CommandBuffer*>(buf));
}
break;
}