diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-02-08 17:42:59 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-02-09 10:12:29 +0300 |
commit | 549d9f87276a20036372317b1f988c4d0ef8c40c (patch) | |
tree | 92c587721c68cec7a1ae3ca5bfb6b87d8ac8e51a /source/blender/editors/space_image | |
parent | eab9165c2512581b918d8bfca40ec98ded08a84a (diff) |
Fix T81206: Do not limit gl texture size in image editor
This patch will show textures in the image editor with the maximum
available resolution determined by the GPU Hardware/Driver.
Currently the size is limited by the user preference texture size limit.
An image user can set the `IMA_SHOW_MAX_RESOLUTION` flag to request
gpu textures in the max supported resolution. When this flag isn't
set the gpu texture is limited by the user preference setting.
When the gl resolution limit is disabled the GPU texture is always
created for the max supported resolution.
Reviewed By: Clément Foucault
Maniphest Tasks: T81206
Differential Revision: https://developer.blender.org/D9160
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r-- | source/blender/editors/space_image/space_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c index 0dd99824dcd..d6939a9100f 100644 --- a/source/blender/editors/space_image/space_image.c +++ b/source/blender/editors/space_image/space_image.c @@ -131,7 +131,7 @@ static SpaceLink *image_create(const ScrArea *UNUSED(area), const Scene *UNUSED( simage->overlay.flag = SI_OVERLAY_SHOW_OVERLAYS; BKE_imageuser_default(&simage->iuser); - simage->iuser.flag = IMA_SHOW_STEREO | IMA_ANIM_ALWAYS; + simage->iuser.flag = IMA_SHOW_STEREO | IMA_ANIM_ALWAYS | IMA_SHOW_MAX_RESOLUTION; BKE_scopes_new(&simage->scopes); simage->sample_line_hist.height = 100; |