-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating a new Gradient2D resource shows up as pink #93759
Comments
Can't reproduce in beta2. Please provide full system information, you can copy them from Help -> Copy System Information. Also, what renderer are you using in your project? |
Sure thing. This happened just recently and I can say my computer is rather old at this point. I wouldn't be surprised if it's a hardware issue or something. |
It's not a hardware issue (you have better specs than mine 🙃). Maybe driver bug or something. |
I think it can be open for now, in case someone has the same issue. |
Alright. I tried it on 3.5.2, 4.0.2, 4.1 and 4.2. Only occured on 4.3beta2 👍 (sorry, mistyped beta1 when it shoúld be beta2) |
I did some test and i can reproduce this issue, looks like a regression between v4.2.dev3.official [013e8e3] and v4.2.dev4.official [549fcce]. This bug seems a little tricky because sometimes not happen, but i was able to reliable trigger setting the texture to unknown_2024.06.30-18.31.mp4The v4.3.beta2.official [b75f048] can reproduce this bug too: Also when i close godot after reproduce the bug the console prints an error and a warning (the amount of RID's vary accordingly the amount of times i reproduce the bug):
I tried to bisect but i can't reproduce this issue on my self compiled versions using MSVC or MinGw as compiler with |
AFAIK official builds use |
Thanks, using that i was able to reproduce the bug in my compiled versions Bisecting points to #81137 as the culprit: |
I can't reproduce it no matter how many times I try: godot_93YME08NNw.mp4 |
i wondering if it maybe has something to do with how but these https://github.com/godotengine/godot/pull/81137/files#diff-07c3cddd56772030a7fc531ae661b56edebe1c566c741b0921ef49b4671c88cdR400 if thats the problem, then it could be solved by making |
I tested yesterday and i can confirm commenting this line stops the bug |
@matheusmdx Since you can confirm the issue and the fix, do you mind making a PR with the fix? If you confirm that it works and make a PR, then @KoBeWi can review the code and ensure it doesn't break anything |
Tested versions
4.3 beta1
System information
Godot v4.3.beta2 - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1070 (NVIDIA; 31.0.15.3742) - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 Threads)
Issue description
Creating a new GradientTexture2D creates a solid pink texture despite the gradient being the default black-white. Making any changes to the gradient fixes it.
Steps to reproduce
New project > Add Sprite2D > Add new GradientTexture2D as the texture
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: