summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/SoftwareGLContext.h
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-12-21 00:46:21 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-12-21 12:58:58 -0800
commit4703e8cbcf16f9448b6e1a0c2e00dd824349d281 (patch)
treeb134999f9b1dfc571a4fba1e6178bd06d511bf24 /Userland/Libraries/LibGL/SoftwareGLContext.h
parent86b249f02fa2293341c0da9c590df6271050cd1d (diff)
downloadserenity-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.h2
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;