mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-10 17:23:15 +02:00
fix typos
This commit is contained in:
parent
e7e3eb2b7c
commit
c6b20da8b5
2 changed files with 8 additions and 10 deletions
|
@ -25,17 +25,15 @@ void DrawSceneTask::run(const SceneContextPointer& sceneContext) {
|
|||
}
|
||||
auto scene = sceneContext->_scene;
|
||||
|
||||
auto itemBucketMap = scene->getMasterBucketMap();
|
||||
auto itemBucketMap = scene->getMasterBucket();
|
||||
|
||||
RenderArgs args;
|
||||
// render opaques
|
||||
auto& opaqueShapeItems = itemBucketMap.find(ItemKey::Builder().withTypeShape().build());
|
||||
if (opaqueShapeItems != itemBucketMap.end()) {
|
||||
|
||||
for (auto id : opaqueShapeItems.second) {
|
||||
auto item = scene->getItem(id);
|
||||
item.render()
|
||||
}
|
||||
auto& opaqueShapeItems = itemBucketMap[ItemFilter::Builder::opaqueShape()];
|
||||
|
||||
for (auto id : opaqueShapeItems) {
|
||||
auto item = scene->getItem(id);
|
||||
item.render(&args);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@ public:
|
|||
|
||||
class Less {
|
||||
public:
|
||||
bool operator() (const ItemFilter& left, const ItemFilter& right) {
|
||||
bool operator() (const ItemFilter& left, const ItemFilter& right) const {
|
||||
if (left._value.to_ulong() > right._value.to_ulong()) {
|
||||
return left._mask.to_ulong() < right._mask.to_ulong();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue