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

New GLLimits struct to access GL "limit values". #48

Merged
merged 1 commit into from
Jan 9, 2016

Conversation

simartin
Copy link
Contributor

@simartin simartin commented Jan 9, 2016

Implement suggestion in code review for my fix for servo issue #9097 at https://reviewable.io/reviews/servo/servo/9102#-K6p6P67OPgZjXKhbiD8

@@ -61,6 +65,7 @@ impl<Native> GLContext<Native>
let mut context = try!(Self::create(shared_with));

context.formats = GLFormats::detect(&attributes);
context.limits = GLLimits::detect();
Copy link
Member

Choose a reason for hiding this comment

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

There should be no need to re-detect the limits here.

The formats are needed because the new attributes don't have to be the old ones, but the limits should always be the same.

@emilio
Copy link
Member

emilio commented Jan 9, 2016

Left a few comments, but this looks good to me :)

The CI failures are due to: rust-lang/rust#30713

@simartin
Copy link
Contributor Author

simartin commented Jan 9, 2016

Thanks, PR updated accordingly

@emilio
Copy link
Member

emilio commented Jan 9, 2016

Great! LGTM

emilio added a commit that referenced this pull request Jan 9, 2016
New GLLimits struct to access GL "limit values".
@emilio emilio merged commit 3d717d8 into servo:master Jan 9, 2016
@simartin simartin deleted the servo_issue_9097 branch January 9, 2016 17:37
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