Search Issue Tracker
Duplicate
Votes
0
Found in
2017.4.0f1
2018.3.10f1
2018.4.0f1
2019.1.0a1
2019.2.0a1
2019.3.0a1
Issue ID
1162639
Regression
No
Setting Shader Texture2DArray via CommandBuffer/MaterialPropertyBlock/Material displays errors in the Console window
How to reproduce:
1. Open user-submitted project (Repro_Shader_Properties) or tester-submitted project (Repro_Shader_Properties_NoSRP)
2. Select 'CaseA' and/or 'CaseB' GameObjects
3. In 'Textured Object' script Component try all 'Current Type' settings with Play Mode
Expected result: no errors are printed in the Console window
Actual result: errors are printed/spammed in the Console window
Reproducible with: 2017.4.29f1, 2018.4.3f1, 2019.1.8f1, 2019.2.0b7, 2019.3.0a7
Notes:
Selecting GameObjects 'CaseA' and 'CaseB' presents the following options in the 'TexturedObject' script Component:
1) MATERIAL_SET_TEXTURE - uses Renderer.material.SetTexture; errors are only printed once upon entering Play Mode
2) MATERIALPROPERTY_ BLOCK_SET_TEXTURE - uses MaterialPropertyBlock.SetTexture; errors are printed continuously upon entering Play Mode
3) NONE - uses CommandBuffer.SetGlobalTexture(in SetGlobalTexture.cs); errors are printed continuously upon entering Play Mode
The following error gets printed:
A multisampled texture being bound to a non-multisampled sampler. Disabling in order to avoid undefined behavior. Please use Texture2DMS in the shader.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Video is not rendered in Video Player when Material Override is set as the Render Mode and a SpriteRenderer is used
- Scene.isSubScene returns True when a Scene that is not a SubScene is loaded in a build
- The Search window does not show objects with inherited components when filtering by type
- Scrolling occurs when using a shortcut with "Wheel Up" or "Wheel Down" on a selection command in a scrollable Hierarchy window
- Shortcut fails to trigger when using KeyCode.WheelUp with ShortcutModifiers.Shift
This is a duplicate of issue #1154519