From 1c2e07d42a2db9542ffa0c78f8f26cc86a6f4811 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Tue, 11 Jan 2022 01:52:05 +0100 Subject: [PATCH] LibGL: Set `q` parameter for `glTexCoord` to 1 by default According to the manual, if `q` is not specified, it is 1. --- Userland/Libraries/LibGL/GLVert.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Userland/Libraries/LibGL/GLVert.cpp b/Userland/Libraries/LibGL/GLVert.cpp index eb37675ab8..0408851282 100644 --- a/Userland/Libraries/LibGL/GLVert.cpp +++ b/Userland/Libraries/LibGL/GLVert.cpp @@ -142,22 +142,22 @@ void glVertex4sv(const GLshort* v) void glTexCoord2d(GLdouble s, GLdouble t) { - g_gl_context->gl_tex_coord(s, t, 0.0f, 0.0f); + g_gl_context->gl_tex_coord(s, t, 0.0f, 1.0f); } void glTexCoord2dv(GLdouble const* v) { - g_gl_context->gl_tex_coord(v[0], v[1], 0.0f, 0.0f); + g_gl_context->gl_tex_coord(v[0], v[1], 0.0f, 1.0f); } void glTexCoord2f(GLfloat s, GLfloat t) { - g_gl_context->gl_tex_coord(s, t, 0.0f, 0.0f); + g_gl_context->gl_tex_coord(s, t, 0.0f, 1.0f); } void glTexCoord2fv(GLfloat const* v) { - g_gl_context->gl_tex_coord(v[0], v[1], 0.0f, 0.0f); + g_gl_context->gl_tex_coord(v[0], v[1], 0.0f, 1.0f); } void glTexCoord2i(GLint s, GLint t)