Refactor new editor boundaries and test ownership
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "Features/Scene/SceneViewportToolOverlay.h"
|
||||
|
||||
#include "Host/TextureHost.h"
|
||||
#include "Ports/TexturePort.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
@@ -57,7 +57,7 @@ UIRect BuildButtonRect(const UIRect& panelRect, std::size_t index) {
|
||||
|
||||
bool SceneViewportToolOverlay::Initialize(
|
||||
const std::filesystem::path& repoRoot,
|
||||
Host::TextureHost& renderer) {
|
||||
Ports::TexturePort& renderer) {
|
||||
Shutdown(renderer);
|
||||
|
||||
const std::filesystem::path iconRoot =
|
||||
@@ -87,7 +87,7 @@ bool SceneViewportToolOverlay::Initialize(
|
||||
return loadedAnyTexture;
|
||||
}
|
||||
|
||||
void SceneViewportToolOverlay::Shutdown(Host::TextureHost& renderer) {
|
||||
void SceneViewportToolOverlay::Shutdown(Ports::TexturePort& renderer) {
|
||||
for (ToolTextureSet& textureSet : m_toolTextures) {
|
||||
renderer.ReleaseTexture(textureSet.inactiveTexture);
|
||||
renderer.ReleaseTexture(textureSet.activeTexture);
|
||||
|
||||
Reference in New Issue
Block a user