/** * Destroys this shader's programs and releases any GL resources. The programs will be recreated * if the shader is used again. If a shader is used in a {@link Surface}, where it cannot be * reference counted, the caller may wish to manually clear its GL resources when it knows the * shader will no longer be used. Alternatively, the resources will be reclaimed when this shader * is garbage collected. */ public void clearProgram() { if (texCore != null) { texCore.destroy(); texCore = null; } }
@Override public void destroy() { super.destroy(); vertices.destroy(); elements.destroy(); data.destroy(); }
@Override public void destroy() { super.destroy(); vertices.destroy(); elements.destroy(); }