From af23b09e72ed6ed2bc68f13a26ac879e0708dbef Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 21 Oct 2015 00:16:07 +1100 Subject: Fix T46496: GL Render fails w/ Anti-Aliasing Needed to check if scaled-multisample-blit is supported. --- source/blender/gpu/intern/gpu_extensions.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c index 02e57e4b505..e1dff03d500 100644 --- a/source/blender/gpu/intern/gpu_extensions.c +++ b/source/blender/gpu/intern/gpu_extensions.c @@ -1455,7 +1455,10 @@ GPUOffScreen *GPU_offscreen_create(int width, int height, int samples, char err_ /* Only needed for GPU_offscreen_read_pixels. * We could add an arg if we intend to use multi-samle * offscreen buffers w/o reading their pixels */ - !GLEW_EXT_framebuffer_blit) + !GLEW_EXT_framebuffer_blit || + /* This is required when blitting from a multi-sampled buffers, + * even though we're not scaling. */ + !GLEW_EXT_framebuffer_multisample_blit_scaled) { samples = 0; } -- cgit v1.2.3