Move initial GL state policy into renderer GL

This commit is contained in:
2026-06-03 05:35:39 +02:00
parent 8b12ae35d4
commit 692fe08d9f
7 changed files with 51 additions and 28 deletions

View File

@@ -212,6 +212,18 @@ pp::renderer::RenderDeviceFeatures render_device_features(OpenGlCapabilities cap
};
}
OpenGlInitialState panopainter_initial_state() noexcept
{
return OpenGlInitialState {
.depth_test_enabled = false,
.depth_test_state = depth_test_state(),
.source_color_factor = source_alpha_blend_factor(),
.destination_color_factor = one_minus_source_alpha_blend_factor(),
.color_equation = add_blend_equation(),
.alpha_equation = max_blend_equation(),
};
}
std::uint32_t extension_count_query() noexcept
{
return gl_num_extensions;