1 --- slideshow/source/engine/OGLTrans/OGLTrans_TransitionerImpl.cxx.ogldispose~ 2008-07-07 21:19:54.633849842 +0200
2 +++ slideshow/source/engine/OGLTrans/OGLTrans_TransitionerImpl.cxx 2008-07-07 21:21:53.434096522 +0200
3 @@ -223,6 +223,7 @@ void OGLTransitionerImpl::initialize( co
4 /* TODO: check for version once the bug in fglrx driver is fixed */
5 cbBrokenTexturesATI = (strcmp( (const char *) glGetString( GL_VENDOR ), "ATI Technologies Inc." ) == 0 );
7 + instance->disposing();
11 @@ -403,6 +404,10 @@ bool OGLTransitionerImpl::initWindowFrom
12 wglMakeCurrent(GLWin.hDC,GLWin.hRC);
14 glXMakeCurrent( GLWin.dpy, GLWin.win, GLWin.ctx );
15 + if( glGetError() != GL_NO_ERROR ) {
16 + OSL_TRACE("glError: %s\n", (char *)gluErrorString(glGetError()));
20 glEnable(GL_CULL_FACE);
22 @@ -806,7 +811,10 @@ void OGLTransitionerImpl::disposing()
26 - OSL_ENSURE( glXMakeCurrent(GLWin.dpy, None, NULL) , "Error releasing glX context" );
27 + glXMakeCurrent(GLWin.dpy, None, NULL);
28 + if( glGetError() != GL_NO_ERROR ) {
29 + OSL_TRACE("glError: %s\n", (char *)gluErrorString(glGetError()));
31 glXDestroyContext(GLWin.dpy, GLWin.ctx);
34 @@ -897,7 +905,7 @@ public:
35 return uno::Reference< presentation::XTransition >();
38 - OGLTransitionImpl* pTransition;
39 + OGLTransitionImpl* pTransition = NULL;
41 if( transitionType == animations::TransitionType::MISCSHAPEWIPE ) {
42 pTransition = new OGLTransitionImpl();