Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-12-02 18:34:16 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-12-02 18:34:16 +0300
commit2fd657db5b2b34aab32cd26b2f65ef7c94f0104a (patch)
treef3b041ddf6c4040f67658be0f0245348ad4a2c31 /intern/cycles/blender/image.h
parent61e92eeb3e38f6dc887b63102b6a9acc9cce7e26 (diff)
Fix T93560: crash with image paint undo and cycles preview render
Cycles preview rendering could free the image buffers being used by drawing in another thread due to a race condition. This race condition was unlikely before, but now that preview renders are started right before we draw the image in the image editor or load it as a texture in the 3D viewport, it's likely to happen. As we are close to release this is too risky to fix properly, just avoid freeing the cache for preview renders instead and accept increased memory usage in some cases.
Diffstat (limited to 'intern/cycles/blender/image.h')
-rw-r--r--intern/cycles/blender/image.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/blender/image.h b/intern/cycles/blender/image.h
index 6f1e72c21af..b4aa4299ed1 100644
--- a/intern/cycles/blender/image.h
+++ b/intern/cycles/blender/image.h
@@ -25,7 +25,7 @@ CCL_NAMESPACE_BEGIN
class BlenderImageLoader : public ImageLoader {
public:
- BlenderImageLoader(BL::Image b_image, int frame);
+ BlenderImageLoader(BL::Image b_image, const int frame, const bool is_preview_render);
bool load_metadata(const ImageDeviceFeatures &features, ImageMetaData &metadata) override;
bool load_pixels(const ImageMetaData &metadata,