@@ -1490,10 +1490,11 @@ var WebGLRenderer = new Class({
14901490 * @param {integer } wrapT - Wrapping mode of the texture.
14911491 * @param {integer } wrapS - Wrapping mode of the texture.
14921492 * @param {integer } format - Which format does the texture use.
1493- * @param {object } pixels - pixel data.
1493+ * @param {? object } pixels - pixel data.
14941494 * @param {integer } width - Width of the texture in pixels.
14951495 * @param {integer } height - Height of the texture in pixels.
1496- * @param {boolean } pma - Does the texture have premultiplied alpha?
1496+ * @param {boolean } [pma=true] - Does the texture have premultiplied alpha?
1497+ * @param {boolean } [forceSize=false] - If `true` it will use the width and height passed to this method, regardless of the pixels dimension.
14971498 *
14981499 * @return {WebGLTexture } The WebGLTexture that was created.
14991500 */
@@ -2331,14 +2332,14 @@ var WebGLRenderer = new Class({
23312332 } ,
23322333
23332334 /**
2334- * Creates a WebGL Texture based on the given canvas element.
2335+ * Creates a WebGL Texture based on the given Video element.
23352336 *
23362337 * @method Phaser.Renderer.WebGL.WebGLRenderer#videoToTexture
2337- * @since 3.0 .0
2338+ * @since 3.20 .0
23382339 *
23392340 * @param {HTMLVideoElement } srcVideo - The Video element that will be used to populate the texture.
23402341 * @param {WebGLTexture } [dstTexture] - Is this going to replace an existing texture? If so, pass it here.
2341- * @param {boolean } [noRepeat=false] - Should this canvas never be allowed to set REPEAT? (such as for Text objects)
2342+ * @param {boolean } [noRepeat=false] - Should this texture never be allowed to set REPEAT?
23422343 *
23432344 * @return {WebGLTexture } The newly created WebGL Texture.
23442345 */
0 commit comments