charcoal/OpenGLEngine/TextureFactory.cpp
elipzer 49f7a3e2d7 Fixed the textured cube from being broken.
The problem was caused by vector re-allocation. This is a similar
problem to what happened with the mesh factory. It was solved by
converting the texture factory to use lists instead of vectors.

The reason for using lists is to prevent the need for explicit
deallocation of resources and instead allow the use of a list to
automatically allocate/deallocate the textures/samplers/meshes.
2018-10-10 10:54:13 -04:00

7 lines
147 B
C++

#include "TextureFactory.h"
namespace charcoal
{
std::list<Texture> TextureFactory::m_textures;
std::list<Sampler> TextureFactory::m_samplers;
}