Commit: 67e1c9735003bea56efb6ccfe7348dd7518ff25b
Author: Campbell Barton
Date:   Mon Oct 19 12:31:20 2015 +1100
Branches: master
https://developer.blender.org/rB67e1c9735003bea56efb6ccfe7348dd7518ff25b

GPU: check for blit support, using MSAA FBO's

Used for reading off-screen buffers,
possible cause of failure for drivers that don't support it.

===================================================================

M       source/blender/gpu/intern/gpu_extensions.c

===================================================================

diff --git a/source/blender/gpu/intern/gpu_extensions.c 
b/source/blender/gpu/intern/gpu_extensions.c
index 1335e00..ce82a67 100644
--- a/source/blender/gpu/intern/gpu_extensions.c
+++ b/source/blender/gpu/intern/gpu_extensions.c
@@ -1450,8 +1450,12 @@ GPUOffScreen *GPU_offscreen_create(int width, int 
height, int samples, char err_
        }
 
        if (samples) {
-               if (!GL_EXT_framebuffer_multisample ||
-                   !GLEW_ARB_texture_multisample)
+               if (!GLEW_EXT_framebuffer_multisample ||
+                   !GLEW_ARB_texture_multisample ||
+                   /* 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)
                {
                        samples = 0;
                }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to