From 93bf17d9521025fe849bf705773de7bacc1dc01d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Wed, 16 Mar 2022 08:36:42 +0100 Subject: GPU: Add support for stencil buffer texturing mode. This adds the possibility to read the stencil buffer inside shaders. This is only available on GL 4.3 so use it accordingly. --- source/blender/gpu/opengl/gl_context.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/gpu/opengl/gl_context.hh') diff --git a/source/blender/gpu/opengl/gl_context.hh b/source/blender/gpu/opengl/gl_context.hh index 54ef1b69e22..c333c8a4afd 100644 --- a/source/blender/gpu/opengl/gl_context.hh +++ b/source/blender/gpu/opengl/gl_context.hh @@ -63,6 +63,7 @@ class GLContext : public Context { static bool multi_bind_support; static bool multi_draw_indirect_support; static bool shader_draw_parameters_support; + static bool stencil_texturing_support; static bool texture_cube_map_array_support; static bool texture_filter_anisotropic_support; static bool texture_gather_support; -- cgit v1.2.3