diff options
author | Romain Guy <romainguy@google.com> | 2010-08-11 16:40:25 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-08-11 16:40:25 -0700 |
commit | 98173a277f8bd6d53d6ff9f7ff09e084f2666fc1 (patch) | |
tree | e90ee9b61c1a23300de1bad3a1eb83d6d77c6d07 /libs/hwui/Program.cpp | |
parent | 3fa3403e2ee98a66b1b1b83b6f65980163609b6d (diff) |
Delete shaders after a compile error. Also disable extra logging.
Change-Id: I9b1558b0feac3d9b2cca926feeaf73921664cc73
Diffstat (limited to 'libs/hwui/Program.cpp')
-rw-r--r-- | libs/hwui/Program.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/Program.cpp b/libs/hwui/Program.cpp index dbae38ecb185..6528d9150110 100644 --- a/libs/hwui/Program.cpp +++ b/libs/hwui/Program.cpp @@ -51,6 +51,8 @@ Program::Program(const char* vertex, const char* fragment) { LOGE("Error while linking shaders: %s", log); delete log; } + glDeleteShader(vertexShader); + glDeleteShader(fragmentShader); glDeleteProgram(id); } |