(Texture texture)
| 527 | |
| 528 | |
| 529 | protected Texture wrapBackTexture(Texture texture) { |
| 530 | if (texture == null) { |
| 531 | texture = new Texture(graphics); |
| 532 | texture.init(graphics.width, graphics.height, |
| 533 | glColorTex.get(backTex), TEXTURE_2D, RGBA, |
| 534 | fboWidth, fboHeight, NEAREST, NEAREST, |
| 535 | CLAMP_TO_EDGE, CLAMP_TO_EDGE); |
| 536 | texture.invertedY(true); |
| 537 | texture.colorBuffer(true); |
| 538 | graphics.setCache(graphics, texture); |
| 539 | } else { |
| 540 | texture.glName = glColorTex.get(backTex); |
| 541 | } |
| 542 | return texture; |
| 543 | } |
| 544 | |
| 545 | |
| 546 | protected Texture wrapFrontTexture(Texture texture) { |
no test coverage detected