mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Replace sparkle
with glow
in components/canvas
(#33918)
* Replace sparkle with glow in components/canvas Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * Replace safe_gl with #34300 Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
910e8dc89f
commit
063071ba72
12 changed files with 958 additions and 703 deletions
|
@ -294,13 +294,17 @@ impl WebGL2RenderingContext {
|
|||
for prog_attrib in program.active_attribs().iter() {
|
||||
let attrib = handle_potential_webgl_error!(
|
||||
self.base,
|
||||
vao.get_vertex_attrib(prog_attrib.location as u32)
|
||||
// TODO(#34300): remove unwrap
|
||||
vao.get_vertex_attrib(prog_attrib.location.unwrap_or(u32::MAX))
|
||||
.ok_or(InvalidOperation),
|
||||
return
|
||||
);
|
||||
|
||||
let current_vertex_attrib =
|
||||
self.base.current_vertex_attribs()[prog_attrib.location as usize];
|
||||
// TODO(#34300): remove unwrap
|
||||
let current_vertex_attrib = self.base.current_vertex_attribs()[prog_attrib
|
||||
.location
|
||||
.map(|l| l as usize)
|
||||
.unwrap_or(usize::MAX)];
|
||||
let attrib_data_base_type = if !attrib.enabled_as_array {
|
||||
match current_vertex_attrib {
|
||||
VertexAttrib::Int(_, _, _, _) => constants::INT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue