diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2021-12-21 00:46:21 +0100 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-21 12:58:58 -0800 |
commit | 4703e8cbcf16f9448b6e1a0c2e00dd824349d281 (patch) | |
tree | b134999f9b1dfc571a4fba1e6178bd06d511bf24 /Userland/Libraries/LibGL/SoftwareGLContext.h | |
parent | 86b249f02fa2293341c0da9c590df6271050cd1d (diff) | |
download | serenity-4703e8cbcf16f9448b6e1a0c2e00dd824349d281.zip |
LibGL: Make texture coordinates a `FloatVector4`
In OpenGL, texture coordinates can have up to 4 values. This change
will help with easy application of texture coordinate matrix
transformations in the future.
Additionally, correct the initial value for texture coordinates to
`{ 0.f, 0.f, 0.f, 1.f}`.
Diffstat (limited to 'Userland/Libraries/LibGL/SoftwareGLContext.h')
-rw-r--r-- | Userland/Libraries/LibGL/SoftwareGLContext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGL/SoftwareGLContext.h b/Userland/Libraries/LibGL/SoftwareGLContext.h index d6b744cefc..7a4d9806da 100644 --- a/Userland/Libraries/LibGL/SoftwareGLContext.h +++ b/Userland/Libraries/LibGL/SoftwareGLContext.h @@ -171,7 +171,7 @@ private: GLint m_clear_stencil { 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 }; + FloatVector4 m_current_vertex_tex_coord = { 0.0f, 0.0f, 0.0f, 1.0f }; FloatVector3 m_current_vertex_normal = { 0.0f, 0.0f, 1.0f }; Vector<GLVertex, 96> vertex_list; |