1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:57:44 +00:00

LibGL: Use C++ casts in glColor

This commit is contained in:
Jelle Raaijmakers 2022-01-13 02:55:54 +01:00 committed by Andreas Kling
parent 1fc611877f
commit db1509c0de

View file

@ -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<float>(r),
static_cast<float>(g),
static_cast<float>(b),
static_cast<float>(a),
};
}
void SoftwareGLContext::gl_end()