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
Notes: sideshowbarker 2024-07-17 22:55:25 +09:00

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()