OpenGL: require EXT_gpu_shader4 & ARB_framebuffer_object on Mac
Mac’s OpenGL version is furthest away from our target of GL 3.2. This commit brings Mac closer to other platforms, so that our shaders and other code don’t diverge too much during development. According to Apple’s OpenGL matrix these useful extensions are available on all GPUs that will be able to run Blender 2.8. Only checked in debug builds; we might need something more forceful. Part of T49012
This commit is contained in:
@@ -130,8 +130,8 @@ void GPU_get_dfdy_factors(float fac[2])
|
||||
|
||||
void gpu_extensions_init(void)
|
||||
{
|
||||
/* BLI_assert(GLEW_VERSION_2_1); */
|
||||
/* ^-- maybe a bit extreme? */
|
||||
BLI_assert(GLEW_VERSION_3_0 || /* Mesa mininum requirement */
|
||||
GLEW_VERSION_2_1 && GLEW_EXT_gpu_shader4 && GLEW_ARB_framebuffer_object); /* Mac minimum requirement */
|
||||
|
||||
glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS, &GG.maxtextures);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user