mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Remove WebGLCommand::GetActiveAttrib
This commit is contained in:
parent
f66c9b6160
commit
a5b800970a
2 changed files with 0 additions and 22 deletions
|
@ -736,8 +736,6 @@ impl WebGLImpl {
|
||||||
ctx.gl().stencil_op(fail, zfail, zpass),
|
ctx.gl().stencil_op(fail, zfail, zpass),
|
||||||
WebGLCommand::StencilOpSeparate(face, fail, zfail, zpass) =>
|
WebGLCommand::StencilOpSeparate(face, fail, zfail, zpass) =>
|
||||||
ctx.gl().stencil_op_separate(face, fail, zfail, zpass),
|
ctx.gl().stencil_op_separate(face, fail, zfail, zpass),
|
||||||
WebGLCommand::GetActiveAttrib(program_id, index, ref chan) =>
|
|
||||||
Self::active_attrib(ctx.gl(), program_id, index, chan),
|
|
||||||
WebGLCommand::GetActiveUniform(program_id, index, ref chan) =>
|
WebGLCommand::GetActiveUniform(program_id, index, ref chan) =>
|
||||||
Self::active_uniform(ctx.gl(), program_id, index, chan),
|
Self::active_uniform(ctx.gl(), program_id, index, chan),
|
||||||
WebGLCommand::GetRenderbufferParameter(target, pname, ref chan) =>
|
WebGLCommand::GetRenderbufferParameter(target, pname, ref chan) =>
|
||||||
|
@ -1045,25 +1043,6 @@ impl WebGLImpl {
|
||||||
chan.send(result.into()).unwrap()
|
chan.send(result.into()).unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unsafe_code)]
|
|
||||||
fn active_attrib(
|
|
||||||
gl: &gl::Gl,
|
|
||||||
program_id: WebGLProgramId,
|
|
||||||
index: u32,
|
|
||||||
chan: &WebGLSender<WebGLResult<(i32, u32, String)>>,
|
|
||||||
) {
|
|
||||||
let mut max = [0];
|
|
||||||
unsafe {
|
|
||||||
gl.get_program_iv(program_id.get(), gl::ACTIVE_ATTRIBUTES, &mut max);
|
|
||||||
}
|
|
||||||
let result = if index >= max[0] as u32 {
|
|
||||||
Err(WebGLError::InvalidValue)
|
|
||||||
} else {
|
|
||||||
Ok(gl.get_active_attrib(program_id.get(), index))
|
|
||||||
};
|
|
||||||
chan.send(result).unwrap();
|
|
||||||
}
|
|
||||||
|
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
fn active_uniform(gl: &gl::Gl,
|
fn active_uniform(gl: &gl::Gl,
|
||||||
program_id: WebGLProgramId,
|
program_id: WebGLProgramId,
|
||||||
|
|
|
@ -207,7 +207,6 @@ pub enum WebGLCommand {
|
||||||
FramebufferTexture2D(u32, u32, u32, Option<WebGLTextureId>, i32),
|
FramebufferTexture2D(u32, u32, u32, Option<WebGLTextureId>, i32),
|
||||||
GetExtensions(WebGLSender<String>),
|
GetExtensions(WebGLSender<String>),
|
||||||
GetShaderPrecisionFormat(u32, u32, WebGLSender<(i32, i32, i32)>),
|
GetShaderPrecisionFormat(u32, u32, WebGLSender<(i32, i32, i32)>),
|
||||||
GetActiveAttrib(WebGLProgramId, u32, WebGLSender<WebGLResult<(i32, u32, String)>>),
|
|
||||||
GetActiveUniform(WebGLProgramId, u32, WebGLSender<WebGLResult<(i32, u32, String)>>),
|
GetActiveUniform(WebGLProgramId, u32, WebGLSender<WebGLResult<(i32, u32, String)>>),
|
||||||
GetUniformLocation(WebGLProgramId, String, WebGLSender<Option<i32>>),
|
GetUniformLocation(WebGLProgramId, String, WebGLSender<Option<i32>>),
|
||||||
GetShaderInfoLog(WebGLShaderId, WebGLSender<String>),
|
GetShaderInfoLog(WebGLShaderId, WebGLSender<String>),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue