diff --git a/src/nostalgia/core/userland/gfx_opengl.cpp b/src/nostalgia/core/userland/gfx_opengl.cpp index cfba5092..674568dc 100644 --- a/src/nostalgia/core/userland/gfx_opengl.cpp +++ b/src/nostalgia/core/userland/gfx_opengl.cpp @@ -9,7 +9,6 @@ #include #include -#include #include #include @@ -37,8 +36,8 @@ struct Background { Texture tex; bool enabled = false; bool updated = false; - std::array bgVertices; - std::array bgElements; + std::array bgVertices = {}; + std::array bgElements = {}; }; struct GlImplData { @@ -145,7 +144,7 @@ static void initBackgroundBufferset(Context *ctx, GLuint shader, Background *bg) // vbo layout auto posAttr = static_cast(glGetAttribLocation(shader, "position")); glEnableVertexAttribArray(posAttr); - glVertexAttribPointer(posAttr, 2, GL_FLOAT, GL_FALSE, BgVertexVboRowLength * sizeof(float), 0); + glVertexAttribPointer(posAttr, 2, GL_FLOAT, GL_FALSE, BgVertexVboRowLength * sizeof(float), nullptr); auto texCoordAttr = static_cast(glGetAttribLocation(shader, "vTexCoord")); glEnableVertexAttribArray(texCoordAttr); glVertexAttribPointer(texCoordAttr, 2, GL_FLOAT, GL_FALSE, BgVertexVboRowLength * sizeof(float),