Fixed host allocated globals address lookup for host usage

Fixed texture driver APIs failure
This commit is contained in:
Rahul Garg
2018-01-30 18:06:31 +05:30
والد 84e3333c5b
کامیت 24ab820a11
4فایلهای تغییر یافته به همراه8 افزوده شده و 11 حذف شده
+1 -2
مشاهده پرونده
@@ -568,7 +568,6 @@ hipError_t hipModuleGetTexRef(
const auto it = globals().find(name);
if (it == globals().end()) return ihipLogStatus(hipErrorInvalidValue);
*texRef = static_cast<textureReference*>(it->second.get());
*texRef = reinterpret_cast<textureReference*>(it->second);
return ihipLogStatus(hipSuccess);
}