Merge pull request #5015 from Snuffleupagus/zero-WebGL-canvases
Zero the height and width of the WebGL canvases on cleanup
This commit is contained in:
commit
a7800c276b
@ -406,6 +406,14 @@ var WebGLUtils = (function WebGLUtilsClosure() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function cleanup() {
|
function cleanup() {
|
||||||
|
if (smaskCache && smaskCache.canvas) {
|
||||||
|
smaskCache.canvas.width = 0;
|
||||||
|
smaskCache.canvas.height = 0;
|
||||||
|
}
|
||||||
|
if (figuresCache && figuresCache.canvas) {
|
||||||
|
figuresCache.canvas.width = 0;
|
||||||
|
figuresCache.canvas.height = 0;
|
||||||
|
}
|
||||||
smaskCache = null;
|
smaskCache = null;
|
||||||
figuresCache = null;
|
figuresCache = null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user