MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / ~GLSLComputeProgram

Method ~GLSLComputeProgram

GTE/Graphics/GL46/GLSLComputeProgram.cpp:12–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using namespace gte;
11
12GLSLComputeProgram::~GLSLComputeProgram()
13{
14 if (glIsProgram(mProgramHandle))
15 {
16 if (glIsShader(mComputeShaderHandle))
17 {
18 glDetachShader(mProgramHandle, mComputeShaderHandle);
19 glDeleteShader(mComputeShaderHandle);
20 }
21
22 glDeleteProgram(mProgramHandle);
23 }
24}
25
26GLSLComputeProgram::GLSLComputeProgram(GLuint programHandle, GLuint computeShaderHandle)
27 :

Callers

nothing calls this directly

Calls 5

glIsProgramFunction · 0.85
glIsShaderFunction · 0.85
glDetachShaderFunction · 0.85
glDeleteShaderFunction · 0.85
glDeleteProgramFunction · 0.85

Tested by

no test coverage detected