aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda/src/impl/texobj.rs
diff options
context:
space:
mode:
Diffstat (limited to 'zluda/src/impl/texobj.rs')
-rw-r--r--zluda/src/impl/texobj.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/zluda/src/impl/texobj.rs b/zluda/src/impl/texobj.rs
index 21eb453..a26918a 100644
--- a/zluda/src/impl/texobj.rs
+++ b/zluda/src/impl/texobj.rs
@@ -14,6 +14,8 @@ pub(crate) unsafe fn create(
return hipError_t::hipErrorInvalidValue;
}
hipfix::array::with_resource_desc(p_res_desc, |p_res_desc| {
- hipTexObjectCreate(p_tex_object, p_res_desc, p_tex_desc, p_res_view_desc)
+ let mut p_tex_desc = *p_tex_desc;
+ p_tex_desc.maxAnisotropy = 0;
+ hipTexObjectCreate(p_tex_object, p_res_desc, &p_tex_desc, p_res_view_desc)
})
}