We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3e89e4 commit ce4c9e0Copy full SHA for ce4c9e0
PixelCamera.cs
@@ -261,7 +261,8 @@ protected void SetupCamera()
261
fallbackMaterial.SetTexture("_MainTex", null);
262
if (advancedSettings != null && advancedSettings.cameraMaterial != null)
263
advancedSettings.cameraMaterial.SetTexture("_MainTex", null);
264
- renderTexture.Release();
+ if (renderTexture != null)
265
+ renderTexture.Release();
266
267
// Create new render texture
268
renderTexture = new RenderTexture(pixelRenderSize[0], pixelRenderSize[1], 0)
0 commit comments