瀏覽代碼

gpu: remove old code in VertexBuffer that caused a memory leak.

legacy
Sam Hocevar sam 12 年之前
父節點
當前提交
b6c330f3d8
共有 1 個檔案被更改,包括 0 行新增1 行删除
  1. +0
    -1
      src/gpu/vertexbuffer.cpp

+ 0
- 1
src/gpu/vertexbuffer.cpp 查看文件

@@ -389,7 +389,6 @@ VertexBuffer::VertexBuffer(size_t size)
if (FAILED(g_d3ddevice->CreateVertexBuffer(size, D3DUSAGE_WRITEONLY, NULL,
D3DPOOL_MANAGED, &m_data->m_vbo, NULL)))
Abort();
new uint8_t[size];
#elif !defined __CELLOS_LV2__ && !defined __ANDROID__
glGenBuffers(1, &m_data->m_vbo);
m_data->m_memory = new uint8_t[size];


Loading…
取消
儲存