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:
authorCampbell Barton <ideasman42@gmail.com>2015-10-19 04:31:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-10-19 04:36:15 +0300
commit67e1c9735003bea56efb6ccfe7348dd7518ff25b (patch)
treecc799ec9b255ffd0333a81e803455f4d2a62544d
parenta25892543a7a81d6823c71d0bc54978b00e7a9b1 (diff)
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.
-rw-r--r--source/blender/gpu/intern/gpu_extensions.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c
index 1335e0066e3..ce82a67dcaf 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;
}