MCPcopy Create free account
hub / github.com/divan/gotrace / releaseMaterialProgramReference

Function releaseMaterialProgramReference

page/js/three.js:25310–25322  ·  view source on GitHub ↗
( material )

Source from the content-addressed store, hash-verified

25308
25309
25310 function releaseMaterialProgramReference( material ) {
25311
25312 var programInfo = properties.get( material ).program;
25313
25314 material.program = undefined;
25315
25316 if ( programInfo !== undefined ) {
25317
25318 programCache.releaseProgram( programInfo );
25319
25320 }
25321
25322 }
25323
25324 // Buffer rendering
25325

Callers 2

deallocateMaterialFunction · 0.85
initMaterialFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected