mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use the DOM cache for gl.getTexParameter(gl.TEXTURE_*_FILTER)
Part of #20596.
This commit is contained in:
parent
9e912be4ea
commit
f7124886bc
3 changed files with 78 additions and 66 deletions
|
@ -276,8 +276,8 @@ pub enum WebGLCommand {
|
|||
GetCurrentVertexAttrib(u32, WebGLSender<[f32; 4]>),
|
||||
GetTexParameterFloat(u32, TexParameterFloat, WebGLSender<f32>),
|
||||
GetTexParameterInt(u32, TexParameterInt, WebGLSender<i32>),
|
||||
TexParameteri(u32, TexParameterInt, i32),
|
||||
TexParameterf(u32, TexParameterFloat, f32),
|
||||
TexParameteri(u32, u32, i32),
|
||||
TexParameterf(u32, u32, f32),
|
||||
DrawArraysInstanced { mode: u32, first: i32, count: i32, primcount: i32 },
|
||||
DrawElementsInstanced { mode: u32, count: i32, type_: u32, offset: u32, primcount: i32 },
|
||||
VertexAttribDivisor { index: u32, divisor: u32 },
|
||||
|
@ -587,8 +587,6 @@ parameters! {
|
|||
TextureMaxAnisotropyExt = gl::TEXTURE_MAX_ANISOTROPY_EXT,
|
||||
}),
|
||||
Int(TexParameterInt {
|
||||
TextureMagFilter = gl::TEXTURE_MAG_FILTER,
|
||||
TextureMinFilter = gl::TEXTURE_MIN_FILTER,
|
||||
TextureWrapS = gl::TEXTURE_WRAP_S,
|
||||
TextureWrapT = gl::TEXTURE_WRAP_T,
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue