mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 08:18:55 +00:00
LibGL: Use C++ casts in glColor
This commit is contained in:
parent
1fc611877f
commit
db1509c0de
Notes:
sideshowbarker
2024-07-17 22:55:25 +09:00
Author: https://github.com/gmta
Commit: db1509c0de
Pull-request: https://github.com/SerenityOS/serenity/pull/11851
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/sunverwerth ✅
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);
|
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()
|
void SoftwareGLContext::gl_end()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue