mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
LibGL: Use C++ casts in glColor
This commit is contained in:
parent
1fc611877f
commit
db1509c0de
1 changed files with 6 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue