Skip to content

Commit 0245cd7

Browse files
authored
Fix variable name that changed in recent PR in master. (#749)
1 parent 918ee06 commit 0245cd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

com.unity.render-pipelines.universal/Shaders/PostProcessing/BokehDepthOfField.shader

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ Shader "Hidden/Universal Render Pipeline/BokehDepthOfField"
3838
uint h;
3939
#if defined(SHADER_API_GLCORE)
4040
// GetDimensions will use textureQueryLevels in OpenGL and that's not
41-
// supported in OpenGL 4.1 or below. In that case we use _MainTex_TexelSize
41+
// supported in OpenGL 4.1 or below. In that case we use _SourceTex_TexelSize
4242
// which is fine as we don't support dynamic scaling in OpenGL.
43-
w = _MainTex_TexelSize.z;
44-
h = _MainTex_TexelSize.w;
43+
w = _SourceTex_TexelSize.z;
44+
h = _SourceTex_TexelSize.w;
4545
#elif defined(UNITY_STEREO_INSTANCING_ENABLED) || defined(UNITY_STEREO_MULTIVIEW_ENABLED)
4646
uint x;
4747
_CameraDepthTexture.GetDimensions(w, h, x);

0 commit comments

Comments
 (0)