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
path: root/source
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2022-05-25 09:50:15 +0300
committerJeroen Bakker <jeroen@blender.org>2022-05-25 09:50:15 +0300
commit8f0612b7813fb49c097f24f7acb9141c0d758908 (patch)
tree97a49ac048a30598683482ae1c4312452ec1c2c0 /source
parent1ec01b21426178afe8bc0850faa654d9213528be (diff)
parent08324ba2c1cd6427466e8f08a2b0b476ff9b32f6 (diff)
Merge branch 'blender-v3.2-release'
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/BKE_image_partial_update.hh5
-rw-r--r--source/blender/gpu/opengl/gl_backend.cc3
2 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_image_partial_update.hh b/source/blender/blenkernel/BKE_image_partial_update.hh
index 393bf003caa..6611efe7a61 100644
--- a/source/blender/blenkernel/BKE_image_partial_update.hh
+++ b/source/blender/blenkernel/BKE_image_partial_update.hh
@@ -172,6 +172,11 @@ class ImageTileData : AbstractTileData {
if (image_user != nullptr) {
this->image_user = *image_user;
}
+ else {
+ /* When no image user is given the lastframe of the image should be used. This reflect the
+ * same logic when using a stencil image in the clone tool. */
+ this->image_user.framenr = image->lastframe;
+ }
}
void init_data(TileNumber new_tile_number) override
diff --git a/source/blender/gpu/opengl/gl_backend.cc b/source/blender/gpu/opengl/gl_backend.cc
index f24dc86a0a7..0c796ddc765 100644
--- a/source/blender/gpu/opengl/gl_backend.cc
+++ b/source/blender/gpu/opengl/gl_backend.cc
@@ -291,7 +291,8 @@ static void detect_workarounds()
}
/* See T82856: AMD drivers since 20.11 running on a polaris architecture doesn't support the
* `GL_INT_2_10_10_10_REV` data type correctly. This data type is used to pack normals and flags.
- * The work around uses `GPU_RGBA16I`.
+ * The work around uses `GPU_RGBA16I`. In 22.?.? drivers this has been fixed for
+ * polaris platform. Keeping legacy platforms around just in case.
*/
if (GPU_type_matches(GPU_DEVICE_ATI, GPU_OS_ANY, GPU_DRIVER_OFFICIAL)) {
const Vector<std::string> matches = {