mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibGL: Fix glTexCoord behaviour
glTexCoord should behave like glColor. It only updates a gl context variable that contains the current texture coordinates. The vertex is only actually created once glVertex is called.
This commit is contained in:
parent
b6373c2aba
commit
5e27da20f4
Notes:
sideshowbarker
2024-07-18 05:30:57 +09:00
Author: https://github.com/sunverwerth
Commit: 5e27da20f4
Pull-request: https://github.com/SerenityOS/serenity/pull/9451
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/alimpfard
3 changed files with 11 additions and 11 deletions
|
@ -119,6 +119,7 @@ private:
|
|||
FloatVector4 m_clear_color = { 0.0f, 0.0f, 0.0f, 0.0f };
|
||||
double m_clear_depth = { 1.0 };
|
||||
FloatVector4 m_current_vertex_color = { 1.0f, 1.0f, 1.0f, 1.0f };
|
||||
FloatVector4 m_current_vertex_tex_coord = { 0.0f, 0.0f, 0.0f, 0.0f };
|
||||
|
||||
Vector<GLVertex, 96> vertex_list;
|
||||
Vector<GLTriangle, 32> triangle_list;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue