Skip to content
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 RenderingDevice::get_driver_resource crash or incorrect result with certain resources #90011

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

jsjtxietian
Copy link
Contributor

@jsjtxietian jsjtxietian commented Mar 29, 2024

Fixes #89979

cc @DarioSamo Except the changes pointed out by the issue author, I also found a "bug" regarding the implicit operator bool() which could lead to the assignment failed and always be 0 or 1 cause bool() kicks in. (For those interested, here is an example of the behaviour https://godbolt.org/z/q1YfPTMjE)

@jsjtxietian jsjtxietian requested a review from a team as a code owner March 29, 2024 09:21
@AThousandShips AThousandShips changed the title Fixes RenderingDevice::get_driver_resource will crash or give incorrect result with certain resources Fix RenderingDevice::get_driver_resource crash or incorrect result with certain resources Mar 29, 2024
@AThousandShips AThousandShips added this to the 4.3 milestone Mar 29, 2024
@DarioSamo
Copy link
Contributor

DarioSamo commented Mar 29, 2024

LGTM.

That implicit bool casting operator has gotten me too in one other occasion and I think I fixed it in one of my other branches, but it can be on this one, no problem.

@akien-mga akien-mga merged commit 0e16c3c into godotengine:master Apr 8, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@jsjtxietian jsjtxietian deleted the command-queue branch April 8, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RenderingDevice::get_driver_resource(DRIVER_RESOURCE_COMMAND_QUEUE) crashes with Vulkan
6 participants