Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nem0 committed May 24, 2017
1 parent afd805d commit d37d1b5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 21 deletions.
3 changes: 1 addition & 2 deletions src/engine/resource_manager_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ namespace Lumix
}

ResourceManagerBase::ResourceManagerBase(IAllocator& allocator)
: m_size(0)
, m_resources(allocator)
: m_resources(allocator)
, m_allocator(allocator)
, m_owner(nullptr)
, m_is_unload_enabled(true)
Expand Down
1 change: 0 additions & 1 deletion src/engine/resource_manager_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ class LUMIX_ENGINE_API ResourceManagerBase

private:
IAllocator& m_allocator;
u32 m_size;
ResourceTable m_resources;
ResourceManager* m_owner;
bool m_is_unload_enabled;
Expand Down
1 change: 1 addition & 0 deletions src/engine/universe/universe.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "engine/matrix.h"
#include "engine/quat.h"
#include "engine/string.h"
#include "engine/iplugin.h"


namespace Lumix
Expand Down
18 changes: 0 additions & 18 deletions src/renderer/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,24 +536,6 @@ struct RendererImpl LUMIX_FINAL : public Renderer
uint32_t size,
bool yflip) override
{
#pragma pack(1)
struct TGAHeader
{
char idLength;
char colourMapType;
char dataType;
short int colourMapOrigin;
short int colourMapLength;
char colourMapDepth;
short int xOrigin;
short int yOrigin;
short int width;
short int height;
char bitsPerPixel;
char imageDescriptor;
};
#pragma pack()

TGAHeader header;
setMemory(&header, 0, sizeof(header));
int bytes_per_pixel = 4;
Expand Down

0 comments on commit d37d1b5

Please sign in to comment.