mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1594436
- Fix glterrain talos test r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D52010 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
490b0df753
commit
b4e7e3b82b
@ -142,7 +142,7 @@
|
||||
var indexBuffer = gl.createBuffer();
|
||||
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, indexBuffer);
|
||||
var indices = [];
|
||||
for (var k = 0; k < terrainSize - k; k++) {
|
||||
for (var k = 0; k < terrainSize - 1; k++) {
|
||||
for (var l = 0; l < terrainSize - 1; l++) {
|
||||
indices.push(k + terrainSize * l);
|
||||
indices.push(k + 1 + terrainSize * l);
|
||||
@ -290,7 +290,7 @@
|
||||
|
||||
gl.uniformMatrix4fv(projectionUniformLoc, false, projectionMatrix);
|
||||
|
||||
gl.uniform1f(grassTextureSamplerUniformLoc, 0);
|
||||
gl.uniform1i(grassTextureSamplerUniformLoc, 0);
|
||||
|
||||
gl.clearColor(0.4, 0.6, 1.0, 0.5);
|
||||
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
|
||||
|
Loading…
Reference in New Issue
Block a user