public virtual void copyScreenToTexture(IRenderingEngine re) { //if (log.DebugEnabled) { Console.WriteLine(string.Format("GETexture.copyScreenToTexture {0}", ToString())); } bind(re, false); int texWidth = System.Math.Min(bufferWidth, width); int texHeight = height; if (useViewportResize) { texWidth = sceDisplay.getResizedWidth(texWidth); texHeight = sceDisplay.getResizedHeight(texHeight); } re.copyTexSubImage(0, 0, 0, 0, 0, texWidth, texHeight); if (Modules.sceDisplayModule.SaveStencilToMemory) { if (!copyStencilToTextureAlpha(re, texWidth, texHeight)) { Modules.sceDisplayModule.SaveStencilToMemory = false; } } Changed = true; }