Commit: d70ef8dbf1230a4d3b5d7cf8441053ab4bcb02ed Author: Thomas Lindemeier Date: Tue Oct 18 13:44:36 2022 +0200 Branches: master https://developer.blender.org/rBd70ef8dbf1230a4d3b5d7cf8441053ab4bcb02ed
Fix Cycles Hydra segmentation fault in usdview Ensure render buffer is allocated when calling WritePixels. Differential Revision: https://developer.blender.org/D16272 =================================================================== M intern/cycles/hydra/output_driver.cpp =================================================================== diff --git a/intern/cycles/hydra/output_driver.cpp b/intern/cycles/hydra/output_driver.cpp index f4ea853f243..3bef8a011b9 100644 --- a/intern/cycles/hydra/output_driver.cpp +++ b/intern/cycles/hydra/output_driver.cpp @@ -55,12 +55,13 @@ bool HdCyclesOutputDriver::update_render_tile(const Tile &tile) const bool isId = aovBinding.aovName == HdAovTokens->primId || aovBinding.aovName == HdAovTokens->elementId || aovBinding.aovName == HdAovTokens->instanceId; - + renderBuffer->Map(); renderBuffer->WritePixels(pixels.data(), GfVec2i(tile.offset.x, tile.offset.y), GfVec2i(tile.size.x, tile.size.y), channels, isId); + renderBuffer->Unmap(); } else { // Do not warn on missing elementId, which is a standard AOV but is not implememted _______________________________________________ Bf-blender-cvs mailing list [email protected] List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs
