mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
Add framebuffer check for mark_as_dirty, #21691
This commit is contained in:
parent
3e8f7fcefd
commit
8148b1b46f
1 changed files with 7 additions and 3 deletions
|
@ -435,9 +435,13 @@ impl WebGLRenderingContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn mark_as_dirty(&self) {
|
fn mark_as_dirty(&self) {
|
||||||
self.canvas
|
// If we don't have a bound framebuffer, then don't mark the canvas
|
||||||
.upcast::<Node>()
|
// as dirty.
|
||||||
.dirty(NodeDamage::OtherNodeDamage);
|
if self.bound_framebuffer.get().is_none() {
|
||||||
|
self.canvas
|
||||||
|
.upcast::<Node>()
|
||||||
|
.dirty(NodeDamage::OtherNodeDamage);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn vertex_attrib(&self, indx: u32, x: f32, y: f32, z: f32, w: f32) {
|
fn vertex_attrib(&self, indx: u32, x: f32, y: f32, z: f32, w: f32) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue