using texture wrap setting

This commit is contained in:
codeanticode
2012-05-27 02:48:27 +00:00
parent 415cb64449
commit 8ebc40e7b7
2 changed files with 3 additions and 0 deletions
@@ -5183,6 +5183,8 @@ public class PGraphicsOpenGL extends PGraphics {
PTexture.Parameters params = (PTexture.Parameters)img.getParams(pgPrimary);
if (params == null) {
params = PTexture.newParameters();
params.wrapU = textureWrap;
params.wrapV = textureWrap;
img.setParams(pgPrimary, params);
}
if (img.parent == null) {