[nostalgia/core] Fix incorrect bit_cast uses

This commit is contained in:
2021-11-02 00:41:31 -05:00
parent 9fd14b0744
commit e91d2653a3
4 changed files with 5 additions and 6 deletions
+1 -2
View File
@@ -13,7 +13,6 @@
#include <nostalgia/glutils/glutils.hpp>
#include <ox/std/bit.hpp>
#include <ox/std/fmt.hpp>
#include <nostalgia/core/config.hpp>
@@ -128,7 +127,7 @@ static void initBackgroundBufferset(Context *ctx, GLuint shader, glutils::Buffer
auto texCoordAttr = static_cast<GLuint>(glGetAttribLocation(shader, "vTexCoord"));
glEnableVertexAttribArray(texCoordAttr);
glVertexAttribPointer(texCoordAttr, 2, GL_FLOAT, GL_FALSE, BgVertexVboRowLength * sizeof(float),
std::bit_cast<void*>(2 * sizeof(float)));
reinterpret_cast<void*>(2 * sizeof(float)));
}
static glutils::GLTexture loadTexture(GLsizei w, GLsizei h, void *pixels) noexcept {