diff --git a/Userland/Libraries/LibGL/SoftwareGLContext.cpp b/Userland/Libraries/LibGL/SoftwareGLContext.cpp index 34ab226d7d..b2bac5cbd2 100644 --- a/Userland/Libraries/LibGL/SoftwareGLContext.cpp +++ b/Userland/Libraries/LibGL/SoftwareGLContext.cpp @@ -270,7 +270,12 @@ void SoftwareGLContext::gl_color(GLdouble r, GLdouble g, GLdouble b, GLdouble a) { APPEND_TO_CALL_LIST_AND_RETURN_IF_NEEDED(gl_color, r, g, b, a); - m_current_vertex_color = { (float)r, (float)g, (float)b, (float)a }; + m_current_vertex_color = { + static_cast(r), + static_cast(g), + static_cast(b), + static_cast(a), + }; } void SoftwareGLContext::gl_end()