diff options
author | Eric Anholt <eric@anholt.net> | 2016-10-30 19:02:35 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2016-11-05 11:49:29 -0700 |
commit | 3277c5281cf7d4345d8c0eb11a8f451a5796eb3e (patch) | |
tree | 152f5b40e7f771521a5b849480f2324cac101060 /components/script/dom/webgltexture.rs | |
parent | d77373654a4d168092fb51d1810236d4bf0b3b52 (diff) | |
download | servo-3277c5281cf7d4345d8c0eb11a8f451a5796eb3e.tar.gz servo-3277c5281cf7d4345d8c0eb11a8f451a5796eb3e.zip |
webgl: Validate that framebuffer attachment sizes match.
This is required by the WebGL spec, and we need to figure out the FB
size like this for validating ReadPixels.
Diffstat (limited to 'components/script/dom/webgltexture.rs')
-rw-r--r-- | components/script/dom/webgltexture.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/webgltexture.rs b/components/script/dom/webgltexture.rs index 31fdaafcffd..3ba8eefca85 100644 --- a/components/script/dom/webgltexture.rs +++ b/components/script/dom/webgltexture.rs @@ -332,7 +332,7 @@ impl WebGLTexture { self.image_info_at_face(face_index, level) } - fn image_info_at_face(&self, face: u8, level: u32) -> ImageInfo { + pub fn image_info_at_face(&self, face: u8, level: u32) -> ImageInfo { let pos = (level * self.face_count.get() as u32) + face as u32; self.image_info_array.borrow()[pos as usize] } |