1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00

LibGL+LibGPU: Implement glPointSize

This commit is contained in:
Jelle Raaijmakers 2022-05-08 01:41:30 +02:00 committed by Linus Groh
parent ac3e46b97d
commit 0dcb23ee96
Notes: sideshowbarker 2024-07-17 11:06:51 +09:00
6 changed files with 25 additions and 4 deletions

View file

@ -1192,6 +1192,18 @@ void GLContext::gl_rect(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
gl_end();
}
void GLContext::gl_point_size(GLfloat size)
{
APPEND_TO_CALL_LIST_AND_RETURN_IF_NEEDED(gl_point_size, size);
RETURN_WITH_ERROR_IF(size <= 0.f, GL_INVALID_VALUE);
m_point_size = size;
auto rasterizer_options = m_rasterizer->options();
rasterizer_options.point_size = size;
m_rasterizer->set_options(rasterizer_options);
}
void GLContext::present()
{
m_rasterizer->blit_color_buffer_to(*m_frontbuffer);