Kaydet (Commit) 3f00b009 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

handle the OpenGL context for the x11 backend

Change-Id: If3f5f879cc4fc0b78c325908c3358d09194144c6
üst 566afff9
...@@ -154,10 +154,14 @@ void X11SalGraphics::SetDrawable( Drawable aDrawable, SalX11Screen nXScreen ) ...@@ -154,10 +154,14 @@ void X11SalGraphics::SetDrawable( Drawable aDrawable, SalX11Screen nXScreen )
else else
{ {
OpenGLSalGraphicsImpl* pOpenGLImpl = dynamic_cast<OpenGLSalGraphicsImpl*>(mpImpl.get()); OpenGLSalGraphicsImpl* pOpenGLImpl = dynamic_cast<OpenGLSalGraphicsImpl*>(mpImpl.get());
if (pOpenGLImpl) if (pOpenGLImpl && m_pFrame)
{ {
pOpenGLImpl->GetOpenGLContext().init(GetXDisplay(), if( dynamic_cast<X11SalFrame*>(m_pFrame))
GetDisplay()->GetDrawable(m_nXScreen), m_nXScreen.getXScreen()); {
Window aWin = dynamic_cast<X11SalFrame*>(m_pFrame)->GetDrawable();
pOpenGLImpl->GetOpenGLContext().init(GetXDisplay(),
aWin, m_nXScreen.getXScreen());
}
} }
} }
nTextPixel_ = GetPixel( nTextColor_ ); nTextPixel_ = GetPixel( nTextColor_ );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment