Index: ui/gl/gl_context_glx.cc |
diff --git a/ui/gl/gl_context_glx.cc b/ui/gl/gl_context_glx.cc |
index af94040d88fef1fd0d2116ec4a5289333dc43b0b..b8d13892f65d4172bec4054a93b154b2713e1828 100644 |
--- a/ui/gl/gl_context_glx.cc |
+++ b/ui/gl/gl_context_glx.cc |
@@ -38,10 +38,6 @@ GLContextGLX::GLContextGLX(GLShareGroup* share_group) |
display_(NULL) { |
} |
-GLContextGLX::~GLContextGLX() { |
- Destroy(); |
-} |
- |
Display* GLContextGLX::display() { |
return display_; |
} |
@@ -250,4 +246,8 @@ bool GLContextGLX::WasAllocatedUsingARBRobustness() { |
return GLSurfaceGLX::IsCreateContextRobustnessSupported(); |
} |
+GLContextGLX::~GLContextGLX() { |
+ Destroy(); |
+} |
+ |
} // namespace gfx |