mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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) {
|
||||
self.canvas
|
||||
.upcast::<Node>()
|
||||
.dirty(NodeDamage::OtherNodeDamage);
|
||||
// If we don't have a bound framebuffer, then don't mark the canvas
|
||||
// as dirty.
|
||||
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue