This commit is contained in:
bkaradzic 2013-06-24 23:38:14 -07:00
parent bd508cc502
commit daab00e816
5 changed files with 12 additions and 12 deletions

View File

@ -47,7 +47,7 @@ TrueTypeHandle loadTtf(FontManager* _fm, const char* _fontPath)
if (newLen == 0)
{
fclose(pFile);
delete[] buffer;
delete [] buffer;
TrueTypeHandle invalid = BGFX_INVALID_HANDLE;
return invalid;
}

View File

@ -58,7 +58,7 @@ char* loadText(const char* _textFile)
if (newLen == 0)
{
fclose(pFile);
delete[] buffer;
delete [] buffer;
return NULL;
}
@ -96,7 +96,7 @@ TrueTypeHandle loadTtf(FontManager* _fm, const char* _fontPath)
if (newLen == 0)
{
fclose(pFile);
delete[] buffer;
delete [] buffer;
TrueTypeHandle invalid = BGFX_INVALID_HANDLE;
return invalid;
}

View File

@ -309,9 +309,9 @@ Atlas::Atlas(uint16_t _textureSize, const uint8_t* _textureBuffer, uint16_t _reg
Atlas::~Atlas()
{
delete[] m_layers;
delete[] m_regions;
delete[] m_textureBuffer;
delete [] m_layers;
delete [] m_regions;
delete [] m_textureBuffer;
}
void Atlas::init()

View File

@ -481,12 +481,12 @@ void FontManager::init()
FontManager::~FontManager()
{
BX_CHECK(m_fontHandles.getNumHandles() == 0, "All the fonts must be destroyed before destroying the manager");
delete[] m_cachedFonts;
delete [] m_cachedFonts;
BX_CHECK(m_filesHandles.getNumHandles() == 0, "All the font files must be destroyed before destroying the manager");
delete[] m_cachedFiles;
delete [] m_cachedFiles;
delete[] m_buffer;
delete [] m_buffer;
if (m_ownAtlas)
{

View File

@ -218,8 +218,8 @@ TextBuffer::TextBuffer(FontManager* _fontManager)
TextBuffer::~TextBuffer()
{
delete[] m_vertexBuffer;
delete[] m_indexBuffer;
delete [] m_vertexBuffer;
delete [] m_indexBuffer;
}
void TextBuffer::appendText(FontHandle _fontHandle, const char* _string, const char* _end)
@ -620,7 +620,7 @@ TextBufferManager::TextBufferManager(FontManager* _fontManager)
TextBufferManager::~TextBufferManager()
{
BX_CHECK(m_textBufferHandles.getNumHandles() == 0, "All the text buffers must be destroyed before destroying the manager");
delete[] m_textBuffers;
delete [] m_textBuffers;
bgfx::destroyUniform(u_texColor);