diff options
author | chai <chaifix@163.com> | 2019-06-09 21:12:25 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-06-09 21:12:25 +0800 |
commit | 8ee3f7453bf7b0db5c7358e697e91714d825c87d (patch) | |
tree | 57283565219d1808b47bbd4a883a5a52b6eb7bae /source/modules/asura-core/graphics/gpu_buffer.cpp | |
parent | d7a972a0f16da0fd7bf4c0b70913920216ff3113 (diff) |
*misc
Diffstat (limited to 'source/modules/asura-core/graphics/gpu_buffer.cpp')
-rw-r--r-- | source/modules/asura-core/graphics/gpu_buffer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/modules/asura-core/graphics/gpu_buffer.cpp b/source/modules/asura-core/graphics/gpu_buffer.cpp index 4c84b7e..8d6f491 100644 --- a/source/modules/asura-core/graphics/gpu_buffer.cpp +++ b/source/modules/asura-core/graphics/gpu_buffer.cpp @@ -71,13 +71,12 @@ namespace AsuraEngine return false; if (mBuffer == 0) { - // ��ʼ�� gfx.WipeError(); glGenBuffers(1, &mBuffer); if (mBuffer == 0) throw Exception("OpenGL glGenBuffers failed."); glBindBuffer(mTarget, mBuffer); - glBufferData(mTarget, mSize, NULL, mUsage); // ��ʼ����СΪsize�Ļ��壬������usage��ŵ���Ӧ�Դ����� + glBufferData(mTarget, mSize, NULL, mUsage); if (gfx.HasError()) { glBindBuffer(mTarget, 0); @@ -98,7 +97,6 @@ namespace AsuraEngine } glBindBuffer(mTarget, 0); #if ASURA_DEBUG - // ����һ�ݣ������� memcpy(mData + offset, data, size); #endif return true; |