ソースを参照

scene: fix a compilation error on 64-bit architectures.

undefined
Sam Hocevar 9年前
コミット
2017951589
1個のファイルの変更3行の追加2行の削除
  1. +3
    -2
      src/scene.cpp

+ 3
- 2
src/scene.cpp ファイルの表示

@@ -73,7 +73,7 @@ private:
/* Primitives will be kept until:
* - Updated by entity
* - Scene is destroyed */
map<uint32_t, array<Primitive*, PrimitiveSettings*> > m_primitives_;
map<uintptr_t, array<Primitive*, PrimitiveSettings*> > m_primitives_;

/* Old API <P0, P1, COLOR, TIME, MASK> */
float m_new_line_time;
@@ -311,7 +311,8 @@ void Scene::AddPrimitive(Primitive* primitive)
//-----------------------------------------------------------------------------
void Scene::AddPrimitive(Entity* entity, Primitive* primitive)
{
data->m_primitives_[(uint32_t)entity /* I don't like that */].push(primitive, nullptr);
/* FIXME: data->m_primitives_ is never emptied or even used. */
data->m_primitives_[(uintptr_t)entity /* I don't like that */].push(primitive, nullptr);
}

//-----------------------------------------------------------------------------


読み込み中…
キャンセル
保存