diff options
author | Campbell Barton <campbell@blender.org> | 2022-11-10 03:17:16 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-11-10 03:17:16 +0300 |
commit | 2630fdb78763aad053c7b765dbfee77d30f37be8 (patch) | |
tree | be788b635faca5186f3d5df2e0cd3147c01780b4 /intern/cycles/kernel/osl/services.cpp | |
parent | d49dec896aaae5e2cdb5f2e2926f3bd010f4a0fe (diff) |
Cleanup: format
Diffstat (limited to 'intern/cycles/kernel/osl/services.cpp')
-rw-r--r-- | intern/cycles/kernel/osl/services.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/intern/cycles/kernel/osl/services.cpp b/intern/cycles/kernel/osl/services.cpp index 454b75ea4d9..3fd098de4bb 100644 --- a/intern/cycles/kernel/osl/services.cpp +++ b/intern/cycles/kernel/osl/services.cpp @@ -1176,9 +1176,10 @@ TextureSystem::TextureHandle *OSLRenderServices::get_texture_handle(ustring file return (TextureSystem::TextureHandle *)it->second.get(); } else { - if (it != textures.end() && it->second->type == OSLTextureHandle::SVM && it->second->svm_slots[0].w == -1) { - return reinterpret_cast<TextureSystem::TextureHandle *>( - static_cast<uintptr_t>(it->second->svm_slots[0].y + 1)); + if (it != textures.end() && it->second->type == OSLTextureHandle::SVM && + it->second->svm_slots[0].w == -1) { + return reinterpret_cast<TextureSystem::TextureHandle *>( + static_cast<uintptr_t>(it->second->svm_slots[0].y + 1)); } return NULL; |