-----------------------------------------------------------------------
| 767 | } |
| 768 | //----------------------------------------------------------------------- |
| 769 | void RenderSystem::bindGpuProgram(GpuProgram* prg) |
| 770 | { |
| 771 | auto gptype = prg->getType(); |
| 772 | // mark clip planes dirty if changed (programmable can change space) |
| 773 | if(gptype == GPT_VERTEX_PROGRAM && !mClipPlanes.empty() && !mProgramBound[gptype]) |
| 774 | mClipPlanesDirty = true; |
| 775 | |
| 776 | mProgramBound[gptype] = true; |
| 777 | } |
| 778 | //----------------------------------------------------------------------- |
| 779 | void RenderSystem::unbindGpuProgram(GpuProgramType gptype) |
| 780 | { |
no test coverage detected