diff options
Diffstat (limited to 'js/lib/rdge/texture.js')
-rw-r--r-- | js/lib/rdge/texture.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/rdge/texture.js b/js/lib/rdge/texture.js index b85ee076..15f786ea 100644 --- a/js/lib/rdge/texture.js +++ b/js/lib/rdge/texture.js | |||
@@ -233,7 +233,7 @@ function Texture( dstWorld, texMapName, wrap, mips ) | |||
233 | } | 233 | } |
234 | 234 | ||
235 | // copy the source canvas to the context to be used in the texture | 235 | // copy the source canvas to the context to be used in the texture |
236 | renderCtx.drawImage(srcCanvas, 0, 0); | 236 | renderCtx.drawImage(srcCanvas, 0, 0, width, height); |
237 | 237 | ||
238 | ///////////////// | 238 | ///////////////// |
239 | tex.image = renderCanvas; | 239 | tex.image = renderCanvas; |