void MesaDriver::UnlockGL() { if (m_bglview->Looper()->IsLocked()) m_bglview->UnlockLooper(); // Could call _mesa_make_current(NULL, NULL) but it would just // hinder performance }
void MesaDriver::SwapBuffers() const { _mesa_notifySwapBuffers(m_glcontext); if (m_bitmap) { m_bglview->LockLooper(); m_bglview->DrawBitmap(m_bitmap); m_bglview->UnlockLooper(); }; }