mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 743247. Ensure we don't have an array buffer bound when drawing PluginLayer. r=kats
This fixes the same problem in the newly added PluginLayer
This commit is contained in:
parent
0a898ad609
commit
cb2d54d2a3
@ -247,6 +247,9 @@ public class PluginLayer extends TileLayer
|
||||
coordBuffer.position(0);
|
||||
coordBuffer.put(coords);
|
||||
|
||||
// Unbind any the current array buffer so we can use client side buffers
|
||||
GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);
|
||||
|
||||
// Vertex coordinates are x,y,z starting at position 0 into the buffer.
|
||||
coordBuffer.position(0);
|
||||
GLES20.glVertexAttribPointer(positionHandle, 3, GLES20.GL_FLOAT, false, 20, coordBuffer);
|
||||
@ -317,4 +320,4 @@ public class PluginLayer extends TileLayer
|
||||
mLayer.showView();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user