[Bf-blender-cvs] [bb0b46f78c1] master: GPU: Make sure workaround is supported

mano-wii noreply at git.blender.org
Mon Sep 30 17:16:36 CEST 2019


Commit: bb0b46f78c1e183d8fad99299736316e55c23039
Author: mano-wii
Date:   Mon Sep 30 12:11:35 2019 -0300
Branches: master
https://developer.blender.org/rBbb0b46f78c1e183d8fad99299736316e55c23039

GPU: Make sure workaround is supported

`context_local_shaders_workaround` is only supported on OpenGL 4.1 or higher.

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

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 7b6759c44bf..c6425854ee4 100644
--- a/source/blender/gpu/intern/gpu_extensions.c
+++ b/source/blender/gpu/intern/gpu_extensions.c
@@ -365,7 +365,7 @@ void gpu_extensions_init(void)
     GG.mip_render_workaround = true;
     GG.depth_blitting_workaround = true;
     GG.unused_fb_slot_workaround = true;
-    GG.context_local_shaders_workaround = true;
+    GG.context_local_shaders_workaround = GLEW_ARB_get_program_binary;
   }
 
   /* df/dy calculation factors, those are dependent on driver */



More information about the Bf-blender-cvs mailing list