Skip to content

Commit 97cc00b

Browse files
authored
Merge pull request #1730 from kristianpd/fix-2018-compile
fix(Highlighters): use whiteTexture in place of new Texture
2 parents 73273f3 + 9359218 commit 97cc00b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/VRTK/Source/Scripts/Interactions/Highlighters/VRTK_MaterialColorSwapHighlighter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ protected virtual void ChangeToHighlightColor(Color color, float duration = 0f)
160160

161161
if (resetMainTexture && material.HasProperty("_MainTex"))
162162
{
163-
renderer.material.SetTexture("_MainTex", new Texture());
163+
renderer.material.SetTexture("_MainTex", Texture2D.whiteTexture);
164164
}
165165

166166
if (material.HasProperty("_Color"))

0 commit comments

Comments
 (0)