update osx project
This commit is contained in:
@@ -508,13 +508,7 @@ void NodeStrokePreview::draw_stroke()
|
||||
s_running = true;
|
||||
s_renderer = std::thread([] {
|
||||
BT_SetTerminate();
|
||||
#if __OSX__
|
||||
// There's some weird multithread bug at startup
|
||||
// This random wait is a temp fix
|
||||
// Today is 25/05/2019
|
||||
// Good luck, future Omar
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
#endif
|
||||
|
||||
m_sampler_linear.create();
|
||||
m_sampler_linear_repeat.create(GL_LINEAR, GL_REPEAT);
|
||||
m_sampler_mipmap.create();
|
||||
@@ -553,6 +547,8 @@ void NodeStrokePreview::draw_stroke()
|
||||
|
||||
gl.restore();
|
||||
});
|
||||
|
||||
node->app_redraw();
|
||||
|
||||
//std::this_thread::sleep_for(std::chrono::milliseconds(30));
|
||||
std::this_thread::yield();
|
||||
|
||||
Reference in New Issue
Block a user