mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Warn when using slow WebGL code path.
This commit is contained in:
parent
0964d055cd
commit
e5892989ca
1 changed files with 3 additions and 1 deletions
|
@ -220,7 +220,9 @@ impl<VR: WebVRRenderHandler + 'static> WebGLThread<VR> {
|
|||
// Fallback to readback mode if the shared context creation fails.
|
||||
let result = self.gl_factory.new_shared_context(version, size, attributes)
|
||||
.map(|r| (r, WebGLContextShareMode::SharedTexture))
|
||||
.or_else(|_| {
|
||||
.or_else(|err| {
|
||||
warn!("Couldn't create shared GL context ({}), using slow \
|
||||
readback context instead.", err);
|
||||
let ctx = self.gl_factory.new_context(version, size, attributes);
|
||||
ctx.map(|r| (r, WebGLContextShareMode::Readback))
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue