summaryrefslogtreecommitdiff
path: root/tools/gfx/metal/metal-shader-object.cpp
diff options
context:
space:
mode:
authorskallweitNV <64953474+skallweitNV@users.noreply.github.com>2024-06-11 17:21:45 +0200
committerGitHub <noreply@github.com>2024-06-11 08:21:45 -0700
commit5a289681e511ec419829291c7281cdd3c7918b7f (patch)
treea1dd2c5d6fb3eaff5f17f9c0033326c1fd52dbd5 /tools/gfx/metal/metal-shader-object.cpp
parentdf0a201d85eac4c55c1abf15ed0bf9baea0ae971 (diff)
[gfx] Metal texture fixes (#4331)
Diffstat (limited to 'tools/gfx/metal/metal-shader-object.cpp')
-rw-r--r--tools/gfx/metal/metal-shader-object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gfx/metal/metal-shader-object.cpp b/tools/gfx/metal/metal-shader-object.cpp
index fde04f9ba..33e19bc6f 100644
--- a/tools/gfx/metal/metal-shader-object.cpp
+++ b/tools/gfx/metal/metal-shader-object.cpp
@@ -388,7 +388,7 @@ Result ShaderObjectImpl::bindAsValue(
for (uint32_t i = 0; i < count; ++i)
{
auto texture = m_textures[baseIndex + i];
- context->setTexture(texture ? texture->m_texture->m_texture.get() : nullptr, registerOffset + i);
+ context->setTexture(texture ? texture->m_textureView.get() : nullptr, registerOffset + i);
}
}