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

Vulkan: Fix Crashes caused by not using NewXXX ctor #2041

Merged
merged 2 commits into from
Jul 9, 2018

Conversation

Qining
Copy link
Contributor

@Qining Qining commented Jul 6, 2018

Fix crash when rebuilding command buffer commands

Fix crash when rebuilding command buffer commands
@Qining Qining requested a review from AWoloszyn July 6, 2018 20:43
@@ -879,7 +879,7 @@ func rebuildVkCmdSetBlendConstants(
s *api.GlobalState,
d VkCmdSetBlendConstantsArgsʳ) (func(), api.Cmd, error) {

var constants F32ː4ᵃ
constants := NewF32ː4ᵃ(s.Arena)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The constructor takes array values, so you can fold the next 4 lines into this one

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to use the constructor for array values.

@Qining Qining merged commit 95b5119 into google:master Jul 9, 2018
@Qining Qining deleted the fix-crash-due-to-incorrect-new branch October 23, 2018 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants