mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Implement WebGL GetRenderbufferParameter
This needed a bump of gleam to version 0.4.33
This commit is contained in:
parent
05fe8fa08d
commit
58760d91d1
8 changed files with 158 additions and 129 deletions
|
@ -159,6 +159,17 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
|
|||
self.base.GetFramebufferAttachmentParameter(cx, target, attachment, pname)
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
/// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.7
|
||||
unsafe fn GetRenderbufferParameter(
|
||||
&self,
|
||||
cx: *mut JSContext,
|
||||
target: u32,
|
||||
pname: u32
|
||||
) -> JSVal {
|
||||
self.base.GetRenderbufferParameter(cx, target, pname)
|
||||
}
|
||||
|
||||
/// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.3
|
||||
fn ActiveTexture(&self, texture: u32) {
|
||||
self.base.ActiveTexture(texture)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue