Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. { // Main thread
  2. MStatus stat = MThreadAsync::init();
  3. if( MStatus::kSuccess != stat ) {
  4. MString str = MString("Error creating MThreadAsync");
  5. MGlobal::displayError(str);
  6. }
  7. else
  8. {
  9. MThreadAsync::createTask(createOpenGLVBOs, NULL ,NULL);
  10. }
  11. }
  12.  
  13. void createOpenGLVBOs(void *data) // PARALLEL THREAD
  14. {
  15. ...heavy calculations...
  16. GLuint nb;
  17. glGenBuffers(1, &nb); --> CRASH
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement