-
Notifications
You must be signed in to change notification settings - Fork 33
Conversation
paulrouget
commented
Aug 8, 2015
Extract headless context from api/win32 to platform/windows
…lformats Add a fallback on win32 if enumerate_arb_pixel_formats returns vec![]
Add pixelformat for cocoa and remove individual color components
Add a GlContext trait
…setting the inner size on Windows 8+
Adding SWP_NOMOVE flag to prevent the window from moving to 0,0 when setting inner size on Windows 8
Fix the GLES code in examples/support/mod.rs
Use the EGL API with Android
GL core profile flag
Fix compilation of cocoa
Fix further compilation of cocoa
[WIP] Support for emscripten
Does it work for you before the glutin update? OS/X only supports shader versions 100 or 140+. If you want version 100 you need to add precision qualifiers to all the variables, like If you omit the So I don't see how rust-layers even works on OS/X in its current state except if it's relying on non-standard behavior. |
Oh, wait, duh. I said that OS/X didn't support version 110, but that's only true if you use a recent version of OpenGL. There's also the possibility to create a legacy context (opengl 3.1 or less) at initialization, in which case it is supported. This is what servo is doing:
That's the answer to your problem, just use |
@mrobinson @glennw What should we be doing here? Should we upgrade the context or keep using the legacy one? |
For the record, using If that's ok, we can use the legacy context and once the update has landed, we upgrade? |
I think it's fine to keep doing what we were doing and upgrade later if that is the correct thing long term. |
Note: we hit a Rust bug in the |
See rust-windowing#567 for profile selection fix. |
@glennw / @tomaka can you please tell me if both of these patches are needed, and where they should go (servo/glutin or tomaka/glutin):
And does one require the other? 7ee0318 is a bit tricky because I don't know what to do in |
I believe Glenn took out Weak support so rust-windowing@5124bda is no longer needed for current Servo. glennw@7ee0318 is needed though. But seems like this could go upstream. @tomaka ? |
Sure. As long as it's not unstable I'm ok with it. |
398960b
to
b675d01
Compare
Fix a rare crash in some X11 implementations
…selection-fix Fix OpenGL profile selection
b675d01
to
e4ed759
Compare
All required PRs have now been merged upstreams. |
Once merged, I'll update servo's Cargo.lock in servo/servo#7096 |
Review status: 0 of 83 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. src/api/x11/window.rs, line 122 [r1] (raw file): Comments from the review on Reviewable.io |
@paulrouget This is quite difficult to review as is. Perhaps we could rename the existing servo branch to servo_ and create a new servo branch from glutin/master then just apply our local patches on top? (We've done this in the past a few times). It would be a lot easier to see the differences and give us a cleaner history. |
This PR is against the master branch, not the servo branch. Creating a new PR: #44 |
Glutin update Previous PR (#43) was against the master branch, not the servo branch. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/glutin/44) <!-- Reviewable:end -->