Commits

dbacchet  committed f071ad0

gl context managed by a single thread (was buggy)

  • Participants
  • Parent commits e44e75e

Comments (0)

Files changed (2)

File sources/tools/mesh_importer/main.cpp

 		return -1;
 	}
 
-	printf("init renderer\n");
-	initRenderer(scene);
+	// printf("init renderer\n");
+	// initRenderer(scene);
 
     // sync mutex
     printf("create threads\n");

File sources/tools/mesh_importer/renderer.cpp

 // ----------------------------------------------------------------------------
 void startRenderer( void *params )
 {
+	if (!params)
+		return;
+
+	if (!initRenderer((aiScene*)params))
+		return;
+
 	glClearColor(0.1f,0.1f,0.1f,1.f);
 
 	glEnable(GL_LIGHTING);