explicitly deselect surfaces before using them in the runloop thread
This commit is contained in:
parent
472d3031b2
commit
da2b0867a6
2
milepost
2
milepost
|
@ -1 +1 @@
|
||||||
Subproject commit 83f128fb55c6eec7c8ac3e17e9926d6c740fe9e8
|
Subproject commit 18c793dbb4fac59facc1877fbb04ea889ef2b895
|
|
@ -751,13 +751,12 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
mg_surface_set_hidden(app->debugOverlay.surface, true);
|
mg_surface_set_hidden(app->debugOverlay.surface, true);
|
||||||
|
|
||||||
mg_surface dummy = mg_surface_create_for_window(app->window, MG_CANVAS);
|
mg_surface_deselect();
|
||||||
mg_surface_destroy(dummy);
|
|
||||||
|
|
||||||
//WARN: this is a workaround to avoid stalling the first few times we acquire drawables from
|
//WARN: this is a workaround to avoid stalling the first few times we acquire drawables from
|
||||||
// the surfaces... This should probably be fixed in the implementation of mtl_surface!
|
// the surfaces... This should probably be fixed in the implementation of mtl_surface!
|
||||||
/*
|
//*
|
||||||
for(int i=0; i<4; i++)
|
for(int i=0; i<3; i++)
|
||||||
{
|
{
|
||||||
mg_surface_prepare(app->surface);
|
mg_surface_prepare(app->surface);
|
||||||
mg_canvas_set_current(app->canvas);
|
mg_canvas_set_current(app->canvas);
|
||||||
|
|
Loading…
Reference in New Issue