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

gapis/api/sync: Don't explode if GetTerminator returns a nil. #955

Merged
merged 1 commit into from
Aug 22, 2017

Conversation

ben-clayton
Copy link
Contributor

No description provided.

@@ -81,7 +81,9 @@ func MutationCmdsFor(ctx context.Context, c *path.Capture, cmds []api.Cmd, id ap
if err != nil {
return nil, err
}
terminators = append(terminators, term)
if term != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

You probably want to insert the EarlyTerminator in this case (or return it from GetTerminator), otherwise all commands for this API will be kept even if you only want a subset of the commands.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@ben-clayton ben-clayton merged commit 02c2833 into google:master Aug 22, 2017
@ben-clayton ben-clayton deleted the get-term-fix branch August 22, 2017 17:49
purvisa-at-google-com pushed a commit that referenced this pull request Sep 29, 2022
Calculate size of texture to display in texture list
- Added size to the texture proto, calculated based on format
- Displays the total size from each depth/layer
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.

None yet

2 participants