From 32fc69c215e1ca35697300251b9ef8b9ccd85274 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Sat, 3 Oct 2020 18:04:40 -0400 Subject: [PATCH] CRadarPaintShader: Initialize vbo/ubo --- Runtime/Graphics/Shaders/CRadarPaintShader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Runtime/Graphics/Shaders/CRadarPaintShader.cpp b/Runtime/Graphics/Shaders/CRadarPaintShader.cpp index a96346ece..c2ba0171a 100644 --- a/Runtime/Graphics/Shaders/CRadarPaintShader.cpp +++ b/Runtime/Graphics/Shaders/CRadarPaintShader.cpp @@ -26,6 +26,8 @@ void CRadarPaintShader::draw(const std::vector& instances, const CText if (instances.size() > m_maxInsts) { m_maxInsts = instances.size(); m_tex = tex; + m_vbo = hsh::create_dynamic_vertex_buffer(m_maxInsts); + m_uniBuf = hsh::create_dynamic_uniform_buffer(); hsh::texture2d tex2d = m_tex->GetBooTexture(); m_dataBind.hsh_bind(CRadarPaintShaderPipeline(m_vbo.get(), m_uniBuf.get(), tex2d)); }