Fix T98365: Overlay: Blender 3.2.0 Beta crashes on startup

This was caused by a wrong mass rename on a piece of code used only on
older hardware.
This commit is contained in:
Clément Foucault
2022-05-25 14:39:52 +02:00
parent 98b66dc040
commit c27be07d89

View File

@@ -36,7 +36,7 @@ bvec4 gather_edges(vec2 uv, uint ref)
#ifdef GPU_ARB_texture_gather
ids = textureGather(outlineId, uv);
#else
vec3 ofs = vec3(0.5, 0.5, -0.5) * drw_view.viewport_size_inversey;
vec3 ofs = vec3(0.5, 0.5, -0.5) * drw_view.viewport_size_inverse.xyy;
ids.x = textureLod(outlineId, uv - ofs.xz, 0.0).r;
ids.y = textureLod(outlineId, uv + ofs.xy, 0.0).r;
ids.z = textureLod(outlineId, uv + ofs.xz, 0.0).r;