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

Method unbindGpuProgram

RenderSystems/GL/src/OgreGLRenderSystem.cpp:2343–2363  ·  view source on GitHub ↗

---------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2341 }
2342 //---------------------------------------------------------------------
2343 void GLRenderSystem::unbindGpuProgram(GpuProgramType gptype)
2344 {
2345 mActiveParameters[gptype].reset();
2346 if (gptype == GPT_VERTEX_PROGRAM && mCurrentVertexProgram)
2347 {
2348 mCurrentVertexProgram->unbindProgram();
2349 mCurrentVertexProgram = 0;
2350 }
2351 else if (gptype == GPT_GEOMETRY_PROGRAM && mCurrentGeometryProgram)
2352 {
2353 mCurrentGeometryProgram->unbindProgram();
2354 mCurrentGeometryProgram = 0;
2355 }
2356 else if (gptype == GPT_FRAGMENT_PROGRAM && mCurrentFragmentProgram)
2357 {
2358 mCurrentFragmentProgram->unbindProgram();
2359 mCurrentFragmentProgram = 0;
2360 }
2361 RenderSystem::unbindGpuProgram(gptype);
2362
2363 }
2364 //---------------------------------------------------------------------
2365 void GLRenderSystem::bindGpuProgramParameters(GpuProgramType gptype, const GpuProgramParametersPtr& params, uint16 mask)
2366 {

Callers

nothing calls this directly

Calls 2

resetMethod · 0.45
unbindProgramMethod · 0.45

Tested by

no test coverage detected