@@ -405,11 +405,11 @@ var UtilityPipeline = new Class({
405405 gl . activeTexture ( gl . TEXTURE0 ) ;
406406 gl . bindTexture ( gl . TEXTURE_2D , source . texture ) ;
407407
408- if ( source . height >= target . height )
408+ if ( source . height > target . height )
409409 {
410410 gl . viewport ( 0 , 0 , source . width , source . height ) ;
411411
412- this . setVerticesFromTarget ( source , target ) ;
412+ this . setTargetUVs ( source , target ) ;
413413 }
414414 else
415415 {
@@ -754,18 +754,18 @@ var UtilityPipeline = new Class({
754754 } ,
755755
756756 /**
757- * Sets the vertices of the quad used by the shaders in the Utility Pipeline
757+ * Sets the vertex UV coordinates of the quad used by the shaders in the Utility Pipeline
758758 * so that they correctly adjust the texture coordinates for a blit frame effect.
759759 *
760- * Be sure to call `resetVertices ` once you have finished manipulating the UV coordinates.
760+ * Be sure to call `resetUVs ` once you have finished manipulating the UV coordinates.
761761 *
762- * @method Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#setVerticesFromTarget
762+ * @method Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#setTargetUVs
763763 * @since 3.50.0
764764 *
765765 * @param {Phaser.Renderer.WebGL.RenderTarget } source - The source Render Target.
766766 * @param {Phaser.Renderer.WebGL.RenderTarget } target - The target Render Target.
767767 */
768- setVerticesFromTarget : function ( source , target )
768+ setTargetUVs : function ( source , target )
769769 {
770770 var diff = ( target . height / source . height ) ;
771771
0 commit comments