Which is lame ... I guess we should be doing this inside:
bool OpenGLHelper::isVCLOpenGLEnabled()
To check whether we can in fact initialize this (or not) before we get much further. If this method returns true - we assume that we can get GL up and running; so we need to do a deeper probe and sanity check in there (I guess).
Hmm =) shouldn't be too hard I hope. Still - I'm glad the crash handler is doing its job nicely for you.
We can check for this in the GLEW init and return false if we fail (all well and good) - but then that is not actually checked:
rtl::Reference< OpenGLContext> X11OpenGLSalGra phicsImpl: :CreateWinConte xt() ovider *pProvider = dynamic_ cast<X11WindowP rovider* >(mrParent. m_pFrame) ;
{
X11WindowPr
if( !pProvider )
return nullptr;
Window aWin = pProvider- >GetX11Window( ); :Reference< OpenGLContext> pContext = OpenGLContext: :Create( ); >setVCLOnly( ); GetXDisplay( ), aWin,
mrParent. m_nXScreen. getXScreen( ) );
rtl:
pContext-
pContext->init( mrParent.
return pContext;
}
Which is lame ... I guess we should be doing this inside:
bool OpenGLHelper: :isVCLOpenGLEna bled()
To check whether we can in fact initialize this (or not) before we get much further. If this method returns true - we assume that we can get GL up and running; so we need to do a deeper probe and sanity check in there (I guess).
Hmm =) shouldn't be too hard I hope. Still - I'm glad the crash handler is doing its job nicely for you.