Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upProperly check limit in gl.activeTexture() #21341
Conversation
highfive
commented
Aug 3, 2018
|
Heads up! This PR modifies the following files:
|
highfive
commented
Aug 3, 2018
|
I haven't looked at the rest of the changes, but this stuck out to me. |
| @@ -97,11 +98,20 @@ impl<VR: WebVRRenderHandler + 'static, OB: WebGLThreadObserver> WebGLThread<VR, | |||
| .expect("WebGLContext not found"); | |||
| let glsl_version = Self::get_glsl_version(ctx); | |||
|
|
|||
| let mut max_combined_texture_image_units = [0]; | |||
| unsafe { | |||
| ctx.gl().get_integer_v( | |||
This comment has been minimized.
This comment has been minimized.
| pub glsl_version: WebGLSLVersion | ||
| pub glsl_version: WebGLSLVersion, | ||
| /// The maximum number of combined texture image units. | ||
| pub max_combined_texture_image_units: u32, |
This comment has been minimized.
This comment has been minimized.
|
lgtm |
| @@ -87,6 +87,7 @@ impl<VR: WebVRRenderHandler + 'static, OB: WebGLThreadObserver> WebGLThread<VR, | |||
| } | |||
|
|
|||
| /// Handles a generic WebGLMsg message | |||
| #[allow(unsafe_code)] | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@bors-servo r+ |
|
|
Properly check limit in gl.activeTexture() Fixes #20531. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21341) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
|
|
|
|
nox commentedAug 3, 2018
•
edited by jdm
Fixes #20531.
This change is