diff options
Diffstat (limited to 'src/gpu/gl/debug/GrGLCreateDebugInterface.cpp')
-rw-r--r-- | src/gpu/gl/debug/GrGLCreateDebugInterface.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp b/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp index 22f32dcda1..3f58cc69da 100644 --- a/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp +++ b/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp @@ -1280,6 +1280,11 @@ public: GrDebugGLInterface() : fWrapped(NULL) { + GrDebugGL::staticRef(); + } + + virtual ~GrDebugGLInterface() { + GrDebugGL::staticUnRef(); } void setWrapped(GrGLInterface *interface) { |