mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-20 06:53:30 +00:00
ADD: WebASM port (no sound/no network)
This commit is contained in:
@@ -47,9 +47,13 @@ void glInit()
|
||||
}
|
||||
|
||||
void anGenBuffers(GLsizei n, GLuint* buffers) {
|
||||
static GLuint k = 1;
|
||||
for (int i = 0; i < n; ++i)
|
||||
buffers[i] = ++k;
|
||||
#ifdef __EMSCRIPTEN__
|
||||
glGenBuffers(n, buffers);
|
||||
#else
|
||||
static GLuint k = 1;
|
||||
for (int i = 0; i < n; ++i)
|
||||
buffers[i] = ++k;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef USE_VBO
|
||||
|
||||
Reference in New Issue
Block a user