GL.End requires material.SetPass before! - Error Message
Hey so I started getting this error from a custom shader I was working on so I scrapped it thinking I did something wrong and I bought an asset off the store and it had the same error message so then I created a new standard unity terrain from the editor with no custom stuff on it and the same error occurs only to go away when I deactivate the GameObject causing the error.
The console is literally no help, it just says "GL.End requires material.SetPass before!" and if you click on it instead of taking you to the error code it does nothing and leaves you in the editor.
I've also searched google for this problem, but I'm guessing either Google's search algorithm doesn't work (Which I don't believe) or no one else has this problem on their Unity
Is it okay to leave this error in the game or is it a major Unity bug?
EDIT: After some testing I found out that if I remove GrabPass {} from the shader code the error goes away but now I don't have a GrabPass, it seems to be bugged? Is there a work around for GrabPass {} in the shader code?
Answer by Assustado · Mar 26, 2017 at 08:21 AM
I switched platform to android and it solved.
Same problem with Unity 5.6.0f3 [edit] It is fixed, I just needed to remove the Camera in SVG Import Tools
I am still fighting against this error with SVG Importer. I am also using Unity 5.6.0f3. Can you provide me how you resolved it? I cannot find any camera.
In SVGAtlas, AddFakeCamera I set "camera.enabled=false;" I also set camera.enabled=false on any dummy cameras created elsewhere (in my case ViveControllerInput) but I am not sure if that is necessary. i.e. I did a search on references to AddComponent and disabled all fake cameras.
Hope that helps,
$$anonymous$$ Wu
Answer by jwvanderbeck · Feb 12, 2017 at 09:13 PM
Having this same issue as well and I have no idea what is causing it. I too am in the 5.6 beta, but not using any terrain or VR stuff. However it does appear that the problem is only appearing in a test scene I have where I was playing with multiple cameras, so that might be related?
As stated though the console is absolutely useless in helping you find the issue.
Answer by davidhaley · Feb 25, 2017 at 10:17 PM
I have the same problem.
Hi there, when replying to a question with a comment, please use the
add comment
under the original question. Don't supply comments as answers.
Cheers and beers
Answer by hellaeon · Jan 25, 2017 at 09:26 PM
Mine was using SteamVR with Unity 5.6, I solved it by rolling my project back to 5.5. I am fortunate in that I was not using any specific 5.6 only features.
Cheers
Your answer
Follow this Question
Related Questions
The name 'Player' does not denote a valid type ('not found') 1 Answer
Set transitions not working with right click in Mac 0 Answers
Loading previously saved terrains is slowing down frame rate 0 Answers
Buttons Not Working? PLEASE HELP!!!!!!!!!!!! 0 Answers
How do I file a bug? Issue Tracker web page does not seem to have UI for that. 2 Answers