Skip to content

Commit 7058b7c

Browse files
author
minggo
authored
[ci skip]make codes more readable (cocos2d#18627)
1 parent 329d7b6 commit 7058b7c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cocos/renderer/CCRenderer.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -347,17 +347,17 @@ void Renderer::mapBuffers()
347347

348348
void Renderer::addCommand(RenderCommand* command)
349349
{
350-
int renderQueue =_commandGroupStack.top();
351-
addCommand(command, renderQueue);
350+
int renderQueueID =_commandGroupStack.top();
351+
addCommand(command, renderQueueID);
352352
}
353353

354-
void Renderer::addCommand(RenderCommand* command, int renderQueue)
354+
void Renderer::addCommand(RenderCommand* command, int renderQueueID)
355355
{
356356
CCASSERT(!_isRendering, "Cannot add command while rendering");
357-
CCASSERT(renderQueue >=0, "Invalid render queue");
357+
CCASSERT(renderQueueID >=0, "Invalid render queue");
358358
CCASSERT(command->getType() != RenderCommand::Type::UNKNOWN_COMMAND, "Invalid Command Type");
359359

360-
_renderGroups[renderQueue].push_back(command);
360+
_renderGroups[renderQueueID].push_back(command);
361361
}
362362

363363
void Renderer::pushGroup(int renderQueueID)

cocos/renderer/CCRenderer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class CC_DLL Renderer
160160
void addCommand(RenderCommand* command);
161161

162162
/** Adds a `RenderComamnd` into the renderer specifying a particular render queue ID */
163-
void addCommand(RenderCommand* command, int renderQueue);
163+
void addCommand(RenderCommand* command, int renderQueueID);
164164

165165
/** Pushes a group into the render queue */
166166
void pushGroup(int renderQueueID);

0 commit comments

Comments
 (0)