()
| 685 | |
| 686 | |
| 687 | public void unbind() { |
| 688 | if (pgl.textureIsBound(glTarget, glName)) { |
| 689 | // We don't want to unbind another texture |
| 690 | // that might be bound instead of this one. |
| 691 | if (!pgl.texturingIsEnabled(glTarget)) { |
| 692 | pgl.enableTexturing(glTarget); |
| 693 | pgl.bindTexture(glTarget, 0); |
| 694 | pgl.disableTexturing(glTarget); |
| 695 | } else { |
| 696 | pgl.bindTexture(glTarget, 0); |
| 697 | } |
| 698 | } |
| 699 | bound = false; |
| 700 | } |
| 701 | |
| 702 | |
| 703 | public boolean bound() { |
no test coverage detected