Some meshing working.
This commit is contained in:
parent
392a2b7889
commit
d0ab51c99a
18 changed files with 164 additions and 4 deletions
|
@ -44,17 +44,14 @@ bool XcbGlWindowInterface::initialize(xcb_window_t window)
|
|||
mWindow = glXCreateWindow(mGlInterface->getDisplay(), mGlInterface->getConfig(), window, 0);
|
||||
if (!mWindow)
|
||||
{
|
||||
glXDestroyContext(mGlInterface->getDisplay(), mGlInterface->getContext());
|
||||
MLOG_ERROR("glXCreateWindow failed");
|
||||
return false;
|
||||
}
|
||||
|
||||
mDrawable = mWindow;
|
||||
|
||||
/* make OpenGL context current */
|
||||
if (!glXMakeContextCurrent(mGlInterface->getDisplay(), mDrawable, mDrawable, mGlInterface->getContext()))
|
||||
{
|
||||
glXDestroyContext(mGlInterface->getDisplay(), mGlInterface->getContext());
|
||||
MLOG_ERROR("glXMakeContextCurrent failed");
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue