mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47:35 +00:00
LibGL+LibGPU: Copy line width to rasterizer in glLineWidth
This commit is contained in:
parent
0abb7df09b
commit
582fb3f263
2 changed files with 4 additions and 0 deletions
|
@ -1144,6 +1144,9 @@ void GLContext::gl_line_width(GLfloat width)
|
||||||
RETURN_WITH_ERROR_IF(width <= 0, GL_INVALID_VALUE);
|
RETURN_WITH_ERROR_IF(width <= 0, GL_INVALID_VALUE);
|
||||||
|
|
||||||
m_line_width = width;
|
m_line_width = width;
|
||||||
|
auto options = m_rasterizer->options();
|
||||||
|
options.line_width = width;
|
||||||
|
m_rasterizer->set_options(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GLContext::gl_push_attrib(GLbitfield mask)
|
void GLContext::gl_push_attrib(GLbitfield mask)
|
||||||
|
|
|
@ -39,6 +39,7 @@ struct RasterizerOptions {
|
||||||
float fog_start { 0.0f };
|
float fog_start { 0.0f };
|
||||||
float fog_end { 1.0f };
|
float fog_end { 1.0f };
|
||||||
bool line_smooth { false };
|
bool line_smooth { false };
|
||||||
|
float line_width { 1.f };
|
||||||
bool point_smooth { false };
|
bool point_smooth { false };
|
||||||
float point_size { 1.f };
|
float point_size { 1.f };
|
||||||
bool scissor_enabled { false };
|
bool scissor_enabled { false };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue