Changeset 116585 in webkit
- Timestamp:
- May 9, 2012 5:34:48 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r116584 r116585 1 2012-05-09 Martin Robinson <mrobinson@igalia.com> 2 3 [Cairo] GLContextGLX releases the context with an uninitialized display 4 https://bugs.webkit.org/show_bug.cgi?id=86039 5 6 Reviewed by Philippe Normand. 7 8 No new tests. This does not change behavior on most machines, but has 9 the potential to prevent a pretty nasty crash on others. 10 11 Use the shared display to release GLX contexts instead of the uninitialized 12 m_display member. 13 14 * platform/graphics/glx/GLContextGLX.cpp: 15 (WebCore::GLContextGLX::~GLContextGLX): Release the display with the shared 16 display. 17 * platform/graphics/glx/GLContextGLX.h: 18 (GLContextGLX): Remove the m_display member. 19 1 20 2012-05-09 Tony Gentilcore <tonyg@chromium.org> 2 21 -
trunk/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp
r113909 r116585 241 241 // from Mozilla's 3D canvas implementation at: http://bitbucket.org/ilmari/canvas3d/ 242 242 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0); 243 glXMakeCurrent( m_display, None, None);244 glXDestroyContext( m_display, m_context);243 glXMakeCurrent(sharedDisplay(), None, None); 244 glXDestroyContext(sharedDisplay(), m_context); 245 245 } 246 246 -
trunk/Source/WebCore/platform/graphics/glx/GLContextGLX.h
r113909 r116585 64 64 65 65 GLXContext m_context; 66 Display* m_display;67 66 XID m_window; 68 67 GLXPbuffer m_pbuffer;
Note: See TracChangeset
for help on using the changeset viewer.