Route render platform hints through platform services

This commit is contained in:
2026-06-03 05:20:24 +02:00
parent 389cd93e68
commit 87b1851d59
10 changed files with 45 additions and 26 deletions

View File

@@ -85,16 +85,6 @@ namespace {
return static_cast<GLenum>(pp::renderer::gl::scissor_test_state());
}
[[nodiscard]] GLenum program_point_size_state() noexcept
{
return static_cast<GLenum>(pp::renderer::gl::program_point_size_state());
}
[[nodiscard]] GLenum line_smooth_state() noexcept
{
return static_cast<GLenum>(pp::renderer::gl::line_smooth_state());
}
[[nodiscard]] GLenum source_alpha_blend_factor() noexcept
{
return static_cast<GLenum>(pp::renderer::gl::source_alpha_blend_factor());
@@ -496,10 +486,7 @@ void App::init()
//}
glDisable(depth_test_state());
#if defined(_WIN32) || defined(__OSX__)
glEnable(program_point_size_state());
glEnable(line_smooth_state());
#endif
App::I->apply_render_platform_hints();
glBlendFunc(source_alpha_blend_factor(), one_minus_source_alpha_blend_factor());
glBlendEquationSeparate(add_blend_equation(), max_blend_equation());
});