Route UI leaf render state through GL dispatch

This commit is contained in:
2026-06-04 22:53:07 +02:00
parent 7ade927beb
commit b65db6f617
13 changed files with 213 additions and 45 deletions

View File

@@ -1,7 +1,7 @@
#include "pch.h"
#include "log.h"
#include "legacy_ui_gl_dispatch.h"
#include "node_scroll.h"
#include "renderer_gl/opengl_capabilities.h"
#include "event.h"
#include "shader.h"
@@ -111,7 +111,7 @@ void NodeScroll::draw()
if (rect.w > 0 && rect.z > 0)
{
glDisable(pp::renderer::gl::blend_state());
pp::legacy::ui_gl::set_blend_enabled(false, "NodeScroll");
ShaderManager::use(kShader::Color);
if (m_direction == kScrollDirection::Vertical)