From 245424cfadbeda95ae76a05344196b07ca309001 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 17 Mar 2021 01:40:03 -0500 Subject: [PATCH] [nostalgia/core/userland] Add VBO and EBO length back to array types --- src/nostalgia/core/userland/gfx_opengl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/core/userland/gfx_opengl.cpp b/src/nostalgia/core/userland/gfx_opengl.cpp index b08e759e..b8ef9d47 100644 --- a/src/nostalgia/core/userland/gfx_opengl.cpp +++ b/src/nostalgia/core/userland/gfx_opengl.cpp @@ -68,14 +68,14 @@ void initTileBufferObjects(unsigned vi, float x, float y, float *vbo, GLuint *eb constexpr float ymod = 0.1f; x *= xmod; y *= ymod; - const float vertices[] = { + const float vertices[BgVertexVboLength] = { x, y, 0, 0.04, // bottom left x + xmod, y, 1, 0.04, // bottom right x + xmod, y + ymod, 1, 0.02, // top right x, y + ymod, 0, 0.02, // top left }; memcpy(vbo, vertices, sizeof(vertices)); - const GLuint elms[] = { + const GLuint elms[BgVertexEboLength] = { vi + 0, vi + 1, vi + 2, vi + 2, vi + 3, vi + 0, };