Search Issue Tracker

Duplicate

Votes

1

Found in

2021.2

2021.2.0b12

2022.1

Issue ID

1366455

Regression

No

Console outputs errors when Render Texture Color Format is set to None and Depth Stencil Format is set to anything except None

Texture

-

Reproduction steps:
1. Open the user's attached "Camera Color Depth Error.zip" project
2. Open the "Scene" Scene
3. Enter the Play Mode
4. Observe the Console

Expected result: The Console does not output errors
Actual result: The Console outputs error "RenderTexture.Create failed: colorFormat & depthStencilFormat cannot both be none."

Reproducible with: 2021.2.0b14, 2022.1.0a11
Could not test with: 2019.4.31f1, 2020.3.19f1, 2021.1.23f1 (Cannot set Render Texture Color Format to None)

Note:
- Only reproducible if a Camera component in the Inspector window has Output Texture set to the Render Texture

Comments (7)

  1. Trixxy

    Jun 03, 2024 09:00

    This error is still appearing in 2023.2f1

  2. jowsba

    Mar 09, 2024 00:12

    This is not a duplicate and is is still reproductible at Unity 2022.

  3. Dazza007

    Jan 28, 2024 11:55

    Exact same issue in 2022.3.17f1 - This is not resolved and is not a duplicate so why is it marked as such - I have searched everywhere and cannot find the duplicate. Its freaking annoying as everything still works as expected, it just keeps spamming error messages. Happens whenever I create a RenderTexture without a Color Format, but with a depth Format as per the original post

  4. Whatever560

    Jan 20, 2024 13:35

    Having this error on 2021.3.32f, ay link to to version fixing this if any or the issue tracker ?

  5. SorraTheOrc

    Feb 13, 2023 04:21

    Where is the duplicate? I may be blind but I see no way of following through to the duplicate that this report was closed for. Yet this is where my web search brought me. I'd like to see if this is the same issue I'm having but without a chain to the duplicate this is impossible. Searching here isn't helpful.

  6. khongtuong

    Oct 18, 2022 11:11

    RenderTexture.Create failed: colorFormat & depthStencilFormat cannot both be none.

    2021.3.11f1

  7. fuliu

    Aug 13, 2022 01:56

    我也遇到了同样的错误:
    RenderTexture.Create failed: colorFormat & depthStencilFormat cannot both be none.
    UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset,intptr,System.Collections.Generic.List`1<UnityEngine.Camera/RenderRequest>,Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle)
    渲染管线: URP
    Unity版本: 2021.3.5f1c1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.