Route render platform hints through platform services
This commit is contained in:
15
src/app.cpp
15
src/app.cpp
@@ -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());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user