Commit 0cd12d1d authored by bitplane's avatar bitplane

Fixed compiling under gcc 4. It didn't like the local struct being used in irrAllocator

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2545 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 881bb195
......@@ -145,13 +145,6 @@ void CGUISpriteBank::draw2DSpriteBatch( const core::array<u32>& indices,
{
const irr::u32 drawCount = core::min_<u32>(indices.size(), pos.size());
struct SDrawBatch
{
core::array<core::position2di> positions;
core::array<core::recti> sourceRects;
u32 textureNumber;
};
core::array<SDrawBatch> drawBatches(Textures.size());
for(u32 i = 0;i < Textures.size();i++)
{
......
......@@ -54,11 +54,19 @@ public:
protected:
struct SDrawBatch
{
core::array<core::position2di> positions;
core::array<core::recti> sourceRects;
u32 textureNumber;
};
core::array<SGUISprite> Sprites;
core::array< core::rect<s32> > Rectangles;
core::array<video::ITexture*> Textures;
IGUIEnvironment* Environment;
video::IVideoDriver* Driver;
};
} // end namespace gui
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment