mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58:31 +09:00
[Fix] (MG_State/VertexArray): use array to save attribs to maintain order and optimize performance
This commit is contained in:
@@ -98,6 +98,10 @@ namespace MG_Constants {
|
||||
}; // OpenGL 3
|
||||
}
|
||||
|
||||
namespace VertexArray {
|
||||
constexpr uint32_t MAX_VERTEX_ATTRIBS = 32;
|
||||
}
|
||||
|
||||
namespace PixelStore {
|
||||
static const MG_Global::unordered_map<GLenum, GLint> DEFAULT_VALUES_MAP = {
|
||||
{GL_PACK_SWAP_BYTES, GL_FALSE},
|
||||
|
||||
Reference in New Issue
Block a user