| 678 | } |
| 679 | |
| 680 | static int getTextureAddressingMode(TextureAddressingMode tam, bool hasBorderClamp = true) |
| 681 | { |
| 682 | switch (tam) |
| 683 | { |
| 684 | case TAM_BORDER: |
| 685 | if (hasBorderClamp) |
| 686 | return GL_CLAMP_TO_BORDER_EXT; |
| 687 | OGRE_FALLTHROUGH; |
| 688 | case TAM_CLAMP: |
| 689 | return GL_CLAMP_TO_EDGE; |
| 690 | case TAM_MIRROR: |
| 691 | return GL_MIRRORED_REPEAT; |
| 692 | case TAM_WRAP: |
| 693 | default: |
| 694 | return GL_REPEAT; |
| 695 | } |
| 696 | } |
| 697 | |
| 698 | void GLES2RenderSystem::_setSampler(size_t unit, Sampler& sampler) |
| 699 | { |
no outgoing calls
no test coverage detected