mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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,10 +435,14 @@ impl WebGLRenderingContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn mark_as_dirty(&self) {
|
fn mark_as_dirty(&self) {
|
||||||
|
// 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
|
self.canvas
|
||||||
.upcast::<Node>()
|
.upcast::<Node>()
|
||||||
.dirty(NodeDamage::OtherNodeDamage);
|
.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) {
|
||||||
if indx >= self.limits.max_vertex_attribs {
|
if indx >= self.limits.max_vertex_attribs {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue