| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 * Release all GLES resources. This needs to be done manually, otherwise the r
esources are leaked. | 221 * Release all GLES resources. This needs to be done manually, otherwise the r
esources are leaked. |
| 222 */ | 222 */ |
| 223 @Override | 223 @Override |
| 224 public void release() { | 224 public void release() { |
| 225 for (Shader shader : shaders.values()) { | 225 for (Shader shader : shaders.values()) { |
| 226 shader.glShader.release(); | 226 shader.glShader.release(); |
| 227 } | 227 } |
| 228 shaders.clear(); | 228 shaders.clear(); |
| 229 } | 229 } |
| 230 } | 230 } |
| OLD | NEW |