TheCherno / Sparky

Cross-Platform High Performance 2D/3D game engine for people like me who like to write code.
Apache License 2.0
1.1k stars 223 forks source link

Render API CreateVertexBuffers() #50

Closed LPeter1997 closed 8 years ago

LPeter1997 commented 8 years ago
inline void CreateVertexArrays(uint size, uint* arrays)
{
    GLCall(glGenVertexArrays(size, arrays));
}

inline void CreateVertexBuffers(uint size, uint* buffers)
{
    GLCall(glGenVertexArrays(size, buffers));
}

These are doing exactly the same. Didn't you want to write glGenBuffers on the second one?

TheCherno commented 8 years ago

Good catch! Luckily that wasn't used anywhere (although I probably would have discovered it if it had). Fixed in latest commit. Thanks! :)