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 <brechtvanlommel@gmail.com>2019-01-16 17:24:43 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-16 18:16:42 +0300
commit49562da98d81a0a3d2a4c94b1138be9272587c91 (patch)
tree13121e856fc39ad0e56936eca8e9453c39dbe6e4 /source/blender/gpu
parenta8a89db9c8217a21cc8463fe6e113709bc79be67 (diff)
Preferences: remove unnecessary 16 bit textures preference.
This is a leftover from a time when these were not supported on all GPUs.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_draw.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c
index cf9cbc8ca89..7c06555f255 100644
--- a/source/blender/gpu/intern/gpu_draw.c
+++ b/source/blender/gpu/intern/gpu_draw.c
@@ -309,18 +309,7 @@ GPUTexture *GPU_texture_from_blender(
bool use_high_bit_depth = false, do_color_management = false;
if (ibuf->rect_float) {
- if (U.use_16bit_textures) {
- /* use high precision textures. This is relatively harmless because OpenGL gives us
- * a high precision format only if it is available */
- use_high_bit_depth = true;
- }
- else if (ibuf->rect == NULL) {
- IMB_rect_from_float(ibuf);
- }
- /* we may skip this in high precision, but if not, we need to have a valid buffer here */
- else if (ibuf->userflags & IB_RECT_INVALID) {
- IMB_rect_from_float(ibuf);
- }
+ use_high_bit_depth = true;
/* TODO unneeded when float images are correctly treated as linear always */
if (!is_data) {