From 7cbb8f20a4b479380dac1d2a2f7c7f85ede408be Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 20 Apr 2019 12:47:06 +0200 Subject: GPU: automatically draw images with GLSL shader depending on resolution This adds a new "Automatic" image display method which uses GLSL shaders for most images. It only does CPU side color management for higher res images where sending big float buffers to the GPU is likely to be a bottleneck or cause memory usage problem. Automatic is the default now, previously it was 2D Texture. --- source/blender/editors/include/BIF_glutil.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/include') diff --git a/source/blender/editors/include/BIF_glutil.h b/source/blender/editors/include/BIF_glutil.h index c30674907da..c88277c2ea5 100644 --- a/source/blender/editors/include/BIF_glutil.h +++ b/source/blender/editors/include/BIF_glutil.h @@ -167,6 +167,8 @@ void ED_draw_imbuf_ctx_clipping(const struct bContext *C, float zoom_x, float zoom_y); +int ED_draw_imbuf_method(struct ImBuf *ibuf); + /* OpenGL drawing utility functions. Do not use these in new code, these * are intended to be moved or removed in the future. */ -- cgit v1.2.3