Author: jackburton Date: 2011-01-03 10:34:46 +0100 (Mon, 03 Jan 2011) New Revision: 40089 Changeset: http://dev.haiku-os.org/changeset/40089 Modified: haiku/trunk/src/add-ons/opengl/mesa_software_renderer/MesaSoftwareRenderer.cpp Log: Added TODO Modified: haiku/trunk/src/add-ons/opengl/mesa_software_renderer/MesaSoftwareRenderer.cpp =================================================================== --- haiku/trunk/src/add-ons/opengl/mesa_software_renderer/MesaSoftwareRenderer.cpp 2011-01-03 05:47:33 UTC (rev 40088) +++ haiku/trunk/src/add-ons/opengl/mesa_software_renderer/MesaSoftwareRenderer.cpp 2011-01-03 09:34:46 UTC (rev 40089) @@ -418,7 +418,7 @@ MesaSoftwareRenderer::SwapBuffers(bool VSync) { CALLED(); - + if (!fBitmap) return; @@ -430,8 +430,10 @@ GLView()->DrawBitmap(fBitmap, B_ORIGIN); GLView()->UnlockLooper(); } - } else + } else { + // TODO: Here the BGLView needs to be drawlocked. _CopyToDirect(); + } if (VSync) { BScreen screen(GLView()->Window()); @@ -773,6 +775,9 @@ CALLED(); MesaSoftwareRenderer* mr = (MesaSoftwareRenderer*)ctx->DriverCtx; if ((mr->fOptions & BGL_DOUBLE) == 0) { + // TODO: SwapBuffers() can call _CopyToDirect(), which should + // be always called with with the BGLView drawlocked. + // This is not always the case if called from here. mr->SwapBuffers(); } }