[Bf-blender-cvs] [0da74d3ee9a] master: GPU: Fix GLSL compilation on OpenGL backend.
Jeroen Bakker
noreply at git.blender.org
Mon Jan 30 12:24:05 CET 2023
Commit: 0da74d3ee9ad503be787a5ca5217aa40eda2e768
Author: Jeroen Bakker
Date: Mon Jan 30 12:23:02 2023 +0100
Branches: master
https://developer.blender.org/rB0da74d3ee9ad503be787a5ca5217aa40eda2e768
GPU: Fix GLSL compilation on OpenGL backend.
Regression in {d0f55aa671f7}
===================================================================
M source/blender/gpu/shaders/common/gpu_shader_math_matrix_lib.glsl
===================================================================
diff --git a/source/blender/gpu/shaders/common/gpu_shader_math_matrix_lib.glsl b/source/blender/gpu/shaders/common/gpu_shader_math_matrix_lib.glsl
index 80d9f9d93fc..2df6ebc33a0 100644
--- a/source/blender/gpu/shaders/common/gpu_shader_math_matrix_lib.glsl
+++ b/source/blender/gpu/shaders/common/gpu_shader_math_matrix_lib.glsl
@@ -469,7 +469,7 @@ mat4x4 invert(mat4x4 mat, out bool r_success)
return r_success ? inverse(mat) : mat4x4(0.0);
}
-# ifdef GPU_METAL
+# if defined(GPU_OPENGL) || defined(GPU_METAL)
vec2 normalize(vec2 a)
{
return a * inversesqrt(length_squared(a));
More information about the Bf-blender-cvs
mailing list