Some meshing working.

This commit is contained in:
James Grogan 2022-11-12 17:00:36 +00:00
parent 392a2b7889
commit d0ab51c99a
18 changed files with 164 additions and 4 deletions

View file

@ -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;
}