mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 06:08:30 +09:00
[Fix] (MG_State/Buffer): 1. Don't check on GetBufferObject(), do it on creation 2. Don't modify g_BufferMap on querying
This commit is contained in:
@@ -45,7 +45,7 @@ public:
|
||||
void Delete(GLuint buffer);
|
||||
GLuint GetCurrentBinding(GLenum target) const;
|
||||
|
||||
BufferObject* GetOrCreateBufferObject(GLuint buffer);
|
||||
BufferObject* GetBufferObject(GLuint buffer);
|
||||
|
||||
MG_Global::unordered_map<GLenum, GLuint> currentBindings_;
|
||||
// MG_Global::unordered_map<GLuint, BufferObject> buffers_;
|
||||
|
||||
Reference in New Issue
Block a user