diff options
author | bors-servo <servo-ops@mozilla.com> | 2020-05-01 13:30:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 13:30:05 -0400 |
commit | d08c4fff15cb5f6a8840621e848c9de22fcc3439 (patch) | |
tree | d09e1cf4381d4775c8165477e7a59e26ab459545 /components/script/dom/webgl2renderingcontext.rs | |
parent | f063ae266ef22d7c18e66b66c0193bfe464ecf5f (diff) | |
parent | 1431a389daf6fb1f44187628f70b84d0087f3f96 (diff) | |
download | servo-d08c4fff15cb5f6a8840621e848c9de22fcc3439.tar.gz servo-d08c4fff15cb5f6a8840621e848c9de22fcc3439.zip |
Auto merge of #26336 - szeged:mmatyas__webgl_fns_getparam4, r=jdm
Add support for WebGL2 MIN_PROGRAM_TEXEL_OFFSET
Improves the support of the WebGL2 `MIN_PROGRAM_TEXEL_OFFSET` property (ie. stores it as a signed integer) and adds support for querying it using GetParameter.
See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.2
<!-- Please describe your changes on the following line: -->
cc @jdm @zakorgy
Depends on #26333 because they touch the same test files.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] There are tests for these changes
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'components/script/dom/webgl2renderingcontext.rs')
-rw-r--r-- | components/script/dom/webgl2renderingcontext.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/webgl2renderingcontext.rs b/components/script/dom/webgl2renderingcontext.rs index 037457960fe..9bc4b8fe0a8 100644 --- a/components/script/dom/webgl2renderingcontext.rs +++ b/components/script/dom/webgl2renderingcontext.rs @@ -1046,6 +1046,9 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext { constants::MAX_UNIFORM_BLOCK_SIZE => { return DoubleValue(self.base.limits().max_uniform_block_size as f64) }, + constants::MIN_PROGRAM_TEXEL_OFFSET => { + return Int32Value(self.base.limits().min_program_texel_offset) + }, _ => {}, } |