Skip to content

Commit ef43191

Browse files
committed
Fix typo
1 parent 0793094 commit ef43191

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/rpcore/gui/buffer_viewer.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
#include <regex>
2626
#include <unordered_set>
2727

28+
#include <spdlog/fmt/ostr.h>
29+
2830
#include "render_pipeline/rppanda/showbase/showbase.hpp"
2931
#include "render_pipeline/rppanda/gui/direct_scrolled_frame.hpp"
3032
#include "render_pipeline/rppanda/gui/direct_gui_globals.hpp"
@@ -101,7 +103,7 @@ std::pair<size_t, int> BufferViewer::get_stage_information() const
101103
}
102104
else
103105
{
104-
warn(std::string("Unkown type: ") + std::to_string(static_cast<int>(entry.second)));
106+
warn(fmt::format("Unknown type: {}", static_cast<int>(entry.second)));
105107
}
106108
}
107109

@@ -259,7 +261,7 @@ void BufferViewer::render_stages()
259261
if (stage_tex_id.second == EntryID::TEXTURE)
260262
rgb = LVecBase3f(0.2f, 0.4f, 0.6f);
261263

262-
const std::string internal_name("render_pipeline_internal:");
264+
static const std::string internal_name("render_pipeline_internal:");
263265
auto pos = stage_name.find(internal_name);
264266
if (pos != std::string::npos)
265267
stage_name.replace(pos, internal_name.size(), "");

0 commit comments

Comments
 (0)