MAJOR UPDATE - BROKEN

- New way of loading Texture
This commit is contained in:
2024-09-28 20:16:44 +02:00
parent 6a8172ab1f
commit e20a2aa365
32 changed files with 10727 additions and 117 deletions

View File

@@ -167,7 +167,7 @@ void imguiManager::WidgetObjectWindow(ApplicationClass* app)
for (int count = 0; count < 6; count++)
{
std::string textureLabel = "Texture##" + std::to_string(index);
ID3D11ShaderResourceView* texture = object->GetTexture(count);
ID3D11ShaderResourceView* texture = object->GetTexture();
if (texture != nullptr)
{
// Set the cursor position
@@ -188,7 +188,7 @@ void imguiManager::WidgetObjectWindow(ApplicationClass* app)
for (int count = 0; count < 6; count++)
{
std::string textureLabel = "Texture##" + std::to_string(index);
ID3D11ShaderResourceView* texture = object->GetTexture(count);
ID3D11ShaderResourceView* texture = object->GetTexture();
if (texture != nullptr)
{
// Set the cursor position