{"action":"opened","issue":{"url":"https://api.github.com/repos/Jebbs/DSFMLC/issues/7","repository_url":"https://api.github.com/repos/Jebbs/DSFMLC","labels_url":"https://api.github.com/repos/Jebbs/DSFMLC/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Jebbs/DSFMLC/issues/7/comments","events_url":"https://api.github.com/repos/Jebbs/DSFMLC/issues/7/events","html_url":"https://github.com/Jebbs/DSFMLC/issues/7","id":146796647,"number":7,"title":"Add a quick method to manually flush the GL command buffer?","user":{"login":"aubade","id":436747,"avatar_url":"https://avatars.githubusercontent.com/u/436747?v=3","gravatar_id":"","url":"https://api.github.com/users/aubade","html_url":"https://github.com/aubade","followers_url":"https://api.github.com/users/aubade/followers","following_url":"https://api.github.com/users/aubade/following{/other_user}","gists_url":"https://api.github.com/users/aubade/gists{/gist_id}","starred_url":"https://api.github.com/users/aubade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aubade/subscriptions","organizations_url":"https://api.github.com/users/aubade/orgs","repos_url":"https://api.github.com/users/aubade/repos","events_url":"https://api.github.com/users/aubade/events{/privacy}","received_events_url":"https://api.github.com/users/aubade/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-08T02:36:26Z","updated_at":"2016-04-08T02:36:26Z","closed_at":null,"body":"One little stumbling block I've found when working with DSFML in a multithreaded context is that when building a texture with updateFromPixels, the GL command buffer isn't automatically flushed, so I get occasional corrupt textures. \r\n\r\nTo solve this, on my end I added a quick static method in DSFMLC and DSFML called Texture.flush() that just calls glCheck(glFlush()) on the C++-side, and i'm wondering if this is the sort of thing you think would be worth me filing a pull request for."}}