mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
LibGL: Set q
parameter for glTexCoord
to 1 by default
According to the manual, if `q` is not specified, it is 1.
This commit is contained in:
parent
260663567a
commit
1c2e07d42a
Notes:
sideshowbarker
2024-07-17 21:10:23 +09:00
Author: https://github.com/gmta
Commit: 1c2e07d42a
Pull-request: https://github.com/SerenityOS/serenity/pull/11800
Reviewed-by: https://github.com/Quaker762
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/sunverwerth ✅
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue