()
| 569 | |
| 570 | |
| 571 | protected void unbindFrontTexture() { |
| 572 | if (textureIsBound(TEXTURE_2D, glColorTex.get(frontTex))) { |
| 573 | // We don't want to unbind another texture |
| 574 | // that might be bound instead of this one. |
| 575 | if (!texturingIsEnabled(TEXTURE_2D)) { |
| 576 | enableTexturing(TEXTURE_2D); |
| 577 | bindTexture(TEXTURE_2D, 0); |
| 578 | disableTexturing(TEXTURE_2D); |
| 579 | } else { |
| 580 | bindTexture(TEXTURE_2D, 0); |
| 581 | } |
| 582 | } |
| 583 | } |
| 584 | |
| 585 | |
| 586 | protected void syncBackTexture() { |
no test coverage detected