Index: src/gpu/gl/GrGLGpu.cpp |
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp |
index 972049aa56b36327e24671d7c1d19e3138228035..9b03a2e23dd504f4dfeab4435ec94d323a6500b9 100644 |
--- a/src/gpu/gl/GrGLGpu.cpp |
+++ b/src/gpu/gl/GrGLGpu.cpp |
@@ -227,6 +227,10 @@ GrGLGpu::GrGLGpu(GrGLContext* ctx, GrContext* context) |
} |
GrGLGpu::~GrGLGpu() { |
+ // Delete the path rendering explicitly, since it will need working gpu object to release the |
+ // resources the object itself holds. |
+ fPathRendering.reset(); |
+ |
if (0 != fHWProgramID) { |
// detach the current program so there is no confusion on OpenGL's part |
// that we want it to be deleted |