Skip to content

Commit

Permalink
remove SERVER_MODE usage (cocos#11440)
Browse files Browse the repository at this point in the history
  • Loading branch information
PPpro authored Jun 9, 2022
1 parent 3ff171c commit d1ab7d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cocos/core/root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
THE SOFTWARE.
*/

import { JSB, SERVER_MODE } from 'internal:constants';
import { builtinResMgr } from './builtin';
import { Pool } from './memop';
import { RenderPipeline, createDefaultPipeline, DeferredPipeline } from './pipeline';
Expand Down Expand Up @@ -490,9 +489,7 @@ export class Root {

legacyCC.director.emit(legacyCC.Director.EVENT_BEFORE_COMMIT);
cameraList.sort((a: Camera, b: Camera) => a.priority - b.priority);
if (!SERVER_MODE) {
this._pipeline.render(cameraList);
}
this._pipeline.render(cameraList);
this._device.present();
}

Expand Down

0 comments on commit d1ab7d7

Please sign in to comment.