-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Fix crash when assigning wrong shader to particle process material #102280
Fix crash when assigning wrong shader to particle process material #102280
Conversation
2e64ee1
to
53e6d30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally, it works as expected.
While I didn't get a crash on my end when following the steps in #102277 (Linux), this resolves error spam that previously occurred when assigning a fog shader to a property expecting a particle shader.
ERROR: Parameter "pipeline" is null.
at: compute_list_bind_compute_pipeline (servers/rendering/rendering_device.cpp:5060)
ERROR: This compute pipeline requires (0) bytes of push constant data, supplied: (128)
at: compute_list_set_push_constant (servers/rendering/rendering_device.cpp:5189)
ERROR: No compute pipeline was set before attempting to draw.
at: compute_list_dispatch_threads (servers/rendering/rendering_device.cpp:5341)
ERROR: Parameter "pipeline" is null.
at: compute_list_bind_compute_pipeline (servers/rendering/rendering_device.cpp:5060)
ERROR: This compute pipeline requires (0) bytes of push constant data, supplied: (128)
at: compute_list_set_push_constant (servers/rendering/rendering_device.cpp:5189)
ERROR: No compute pipeline was set before attempting to draw.
at: compute_list_dispatch_threads (servers/rendering/rendering_device.cpp:5341)
ERROR: Parameter "pipeline" is null.
at: compute_list_bind_compute_pipeline (servers/rendering/rendering_device.cpp:5060)
ERROR: This compute pipeline requires (0) bytes of push constant data, supplied: (128)
at: compute_list_set_push_constant (servers/rendering/rendering_device.cpp:5189)
ERROR: No compute pipeline was set before attempting to draw.
at: compute_list_dispatch_threads (servers/rendering/rendering_device.cpp:5341)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine. It seems to use the same logic as the Compatibility renderer version of this function.
Thanks! |
(this bug does not happen on GLES3 (because it has a correct material checking), so I did not change it).