mirror of
https://github.com/android/ndk-samples
synced 2025-11-08 17:16:11 +08:00
sensorgraph: add missing glDeleteShader calls
This commit is contained in:
@@ -144,6 +144,8 @@ class sensorgraph {
|
||||
GLint programLinked = 0;
|
||||
glGetProgramiv(program, GL_LINK_STATUS, &programLinked);
|
||||
assert(programLinked != 0);
|
||||
glDeleteShader(vertexShader);
|
||||
glDeleteShader(pixelShader);
|
||||
return program;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user