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.
This commit is contained in:
parent
a25892543a
commit
67e1c97350
Notes:
blender-bot
2023-02-14 08:32:17 +01:00
Referenced by issue #46868, Collada Exporter Crash Referenced by issue #46496, OpenGL Render fails on Intel-4600, with Anti-aliasing
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue