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:
authorThomas Dinges <blender@dingto.org>2021-11-01 12:18:30 +0300
committerThomas Dinges <blender@dingto.org>2021-11-01 12:18:30 +0300
commit5327413b37760db2fd1b4457c4dd2db7eee50a8b (patch)
treee0e71f5ac6395a6fa5e48789fa2f90eef452a1e7 /intern/cycles/scene/image.cpp
parent289f013e644ad231b32bbc3144d0458b66a96841 (diff)
Cleanup: Remove Cycles device checks for half float.
All supported devices support half float now, so we can remove the check. Differential Revision: https://developer.blender.org/D13021
Diffstat (limited to 'intern/cycles/scene/image.cpp')
-rw-r--r--intern/cycles/scene/image.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/intern/cycles/scene/image.cpp b/intern/cycles/scene/image.cpp
index 80091e01b8c..8bb2d87fd1e 100644
--- a/intern/cycles/scene/image.cpp
+++ b/intern/cycles/scene/image.cpp
@@ -303,7 +303,6 @@ ImageManager::ImageManager(const DeviceInfo &info)
animation_frame = 0;
/* Set image limits */
- features.has_half_float = info.has_half_images;
features.has_nanovdb = info.has_nanovdb;
}
@@ -357,8 +356,6 @@ void ImageManager::load_image_metadata(Image *img)
metadata.detect_colorspace();
- assert(features.has_half_float ||
- (metadata.type != IMAGE_DATA_TYPE_HALF4 && metadata.type != IMAGE_DATA_TYPE_HALF));
assert(features.has_nanovdb || (metadata.type != IMAGE_DATA_TYPE_NANOVDB_FLOAT ||
metadata.type != IMAGE_DATA_TYPE_NANOVDB_FLOAT3));