mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
webgl: Fix a few typos in comments
This commit is contained in:
parent
d152c7fe88
commit
f6f1e37b29
1 changed files with 2 additions and 2 deletions
|
@ -210,7 +210,7 @@ impl WebGLRenderingContext {
|
|||
};
|
||||
|
||||
// TODO(emilio): Get more complex uniform info from ANGLE, and use it to
|
||||
// properly validate that the uniform type is compatible with the
|
||||
// properly validate that the uniform setter type is compatible with the
|
||||
// uniform type, and that the uniform size matches.
|
||||
if data.len() % uniform_type.element_count() != 0 {
|
||||
self.webgl_error(InvalidOperation);
|
||||
|
@ -320,7 +320,7 @@ impl WebGLRenderingContext {
|
|||
}
|
||||
|
||||
// GL_INVALID_VALUE is generated if level is greater than zero and the
|
||||
// texture and the texture is not power of two.
|
||||
// texture is not power of two.
|
||||
if level > 0 &&
|
||||
(!(width as u32).is_power_of_two() ||
|
||||
!(height as u32).is_power_of_two()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue