| commit | f6f123d23608a4a5fe9c812d2452039a18da7e0b | [log] [tgz] |
|---|---|---|
| author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Mar 21 17:57:55 2012 +0000 |
| committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Mar 21 17:57:55 2012 +0000 |
| tree | 2ce9c1b548b14dcf47fa5f8e77d170580cfe0e3a | |
| parent | 008c498b58e674c6fe595a359e3adbafddd05540 [diff] [blame] |
Added tracking of frame buffer objects to debug GL interface http://codereview.appspot.com/5866043/ git-svn-id: http://skia.googlecode.com/svn/trunk@3455 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/gl/SkGLContext.cpp b/src/gpu/gl/SkGLContext.cpp index 525afe8..9b197ac 100644 --- a/src/gpu/gl/SkGLContext.cpp +++ b/src/gpu/gl/SkGLContext.cpp
@@ -13,6 +13,11 @@ } SkGLContext::~SkGLContext() { + + if (fGL) { + SK_GL(*this, DeleteFramebuffers(1, &fFBO)); + } + SkSafeUnref(fGL); }