diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-02-15 23:52:21 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-02-15 23:52:21 +0100 |
commit | 6042e1843023e1f4e0f4c60da8458703b3bc58cf (patch) | |
tree | ef32c36ab78fb4d292ffd96681b4beee28a27b63 /src/graphics/vertex.c | |
parent | cac754b9f5d4695bd6416ac94fcab22423a854f9 (diff) |
Revert text offset y fix because it breaks quickmedia. Revert vertex draw texture coordinate reset because it breaks quickmedia
Diffstat (limited to 'src/graphics/vertex.c')
-rw-r--r-- | src/graphics/vertex.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/graphics/vertex.c b/src/graphics/vertex.c index 8e9b5b9..b45f38c 100644 --- a/src/graphics/vertex.c +++ b/src/graphics/vertex.c @@ -8,6 +8,10 @@ void mgl_vertices_draw(mgl_context *context, const mgl_vertex *vertices, size_t context->gl.glPushMatrix(); context->gl.glTranslatef(position.x, position.y, 0.0f); + context->gl.glMatrixMode(GL_TEXTURE); + context->gl.glLoadIdentity(); + context->gl.glMatrixMode(GL_MODELVIEW); + context->gl.glVertexPointer(2, GL_FLOAT, sizeof(mgl_vertex), (void*)&vertices[0].position); context->gl.glTexCoordPointer(2, GL_FLOAT, sizeof(mgl_vertex), (void*)&vertices[0].texcoords); context->gl.glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(mgl_vertex), (void*)&vertices[0].color); |