Fix T46496: GL Render fails w/ Anti-Aliasing

Needed to check if scaled-multisample-blit is supported.
This commit is contained in:
Campbell Barton 2015-10-21 00:16:07 +11:00
parent e5916187e8
commit af23b09e72
Notes: blender-bot 2023-02-14 08:32:17 +01:00
Referenced by issue #46496, OpenGL Render fails on Intel-4600, with Anti-aliasing
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}