MCPcopy Create free account
hub / github.com/OGRECave/ogre / unbindGpuProgram

Method unbindGpuProgram

RenderSystems/GLES2/src/OgreGLES2RenderSystem.cpp:1529–1543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1527 }
1528
1529 void GLES2RenderSystem::unbindGpuProgram(GpuProgramType gptype)
1530 {
1531 mProgramManager->setActiveShader(gptype, NULL);
1532 mActiveParameters[gptype].reset();
1533
1534 if (gptype == GPT_VERTEX_PROGRAM && mCurrentVertexProgram)
1535 {
1536 mCurrentVertexProgram = 0;
1537 }
1538 else if (gptype == GPT_FRAGMENT_PROGRAM && mCurrentFragmentProgram)
1539 {
1540 mCurrentFragmentProgram = 0;
1541 }
1542 RenderSystem::unbindGpuProgram(gptype);
1543 }
1544
1545 void GLES2RenderSystem::bindGpuProgramParameters(GpuProgramType gptype, const GpuProgramParametersPtr& params, uint16 mask)
1546 {

Callers

nothing calls this directly

Calls 2

setActiveShaderMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected