mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 21:33:40 -07:00
Fixed compilation errors
This commit is contained in:
parent
a790638bf5
commit
5746305157
2 changed files with 2 additions and 2 deletions
|
@ -277,7 +277,7 @@ namespace SohImGui {
|
||||||
|
|
||||||
void LoadResource(const std::string& name, const std::string& path, const ImVec4& tint) {
|
void LoadResource(const std::string& name, const std::string& path, const ImVec4& tint) {
|
||||||
GfxRenderingAPI* api = gfx_get_current_rendering_api();
|
GfxRenderingAPI* api = gfx_get_current_rendering_api();
|
||||||
const auto res = static_cast<Ship::Texture*>(GlobalCtx2::GetInstance()->GetResourceManager()->LoadResource(path)).get());
|
const auto res = static_cast<Ship::Texture*>(GlobalCtx2::GetInstance()->GetResourceManager()->LoadResource(path).get());
|
||||||
|
|
||||||
std::vector<uint8_t> texBuffer;
|
std::vector<uint8_t> texBuffer;
|
||||||
texBuffer.reserve(res->width * res->height * 4);
|
texBuffer.reserve(res->width * res->height * 4);
|
||||||
|
|
|
@ -43,7 +43,7 @@ namespace Ship {
|
||||||
if (raw_path == nullptr) return;
|
if (raw_path == nullptr) return;
|
||||||
|
|
||||||
const auto api = BIND_PTR("gfx_api", GfxRenderingAPI*);
|
const auto api = BIND_PTR("gfx_api", GfxRenderingAPI*);
|
||||||
const auto path = raw_path + ".png";
|
const auto path = std::string(raw_path) + ".png";
|
||||||
const auto node = BIND_PTR("node", TextureCacheNode**);
|
const auto node = BIND_PTR("node", TextureCacheNode**);
|
||||||
const auto fmt = BIND_VAR("fmt", uint32_t*);
|
const auto fmt = BIND_VAR("fmt", uint32_t*);
|
||||||
const auto siz = BIND_VAR("siz", uint32_t*);
|
const auto siz = BIND_VAR("siz", uint32_t*);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue