Search Issue Tracker

By Design

Votes

0

Found in

2021.3.38f1

2022.3.27f1

6000.0.0f1

Issue ID

UUM-71816

Regression

No

“Color and Depth buffer MSAA flags doesn't match, no rendering will occur" error is thrown when MSAA and Custom Pass are enabled in the HDRP Asset

--

-

How to reproduce:
1. Open the “TextXRUnity6Beta“ project
2. Open the “OutdoorScene“
3. Move the mouse around the screen
4. Observe the Console window

Expected result: No errors in the Console window
Actual result: “Color and Depth buffer MSAA flags doesn't match, no rendering will occur. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:219)” error shown in the Console

Reproducible with: 2021.3.38f1, 2022.3.27f1, 6000.0.0f1

Reproducible on: macOS 13.5.2 (Intel), Windows 10 (User)
Not reproducible on: No other environments tested

Note: Was not able to reproduce on a fresh project

  1. Resolution Note:

    Hello,

    This rendering error is a graphic API limitation. It's not possible to use a color buffer with MSAA enabled along with a depth buffer when rendering something.

    The Hair simulation package that you installed uses a hidden custom pass to draw the debug, and it's not compatible with MSAA (this is because its injection point is set to After Post Process, which is after the last MSAA resolve pass).

    To fix the issue, you can disable the debug custom pass, and to make it visible you can uncomment line 35 of HairSimDebugDraw.cs:

    // s_container.hideFlags = HideFlags.HideAndDontSave;

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.