Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { // Main thread
- MStatus stat = MThreadAsync::init();
- if( MStatus::kSuccess != stat ) {
- MString str = MString("Error creating MThreadAsync");
- MGlobal::displayError(str);
- }
- else
- {
- MThreadAsync::createTask(createOpenGLVBOs, NULL ,NULL);
- }
- }
- void createOpenGLVBOs(void *data) // PARALLEL THREAD
- {
- ...heavy calculations...
- GLuint nb;
- glGenBuffers(1, &nb); --> CRASH
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement