Is it safe to make GL calls with multiple threads?

I was wondering if it is possible to make GL calls with multiple threads. I mainly use GLUtesselator and wondered if I can divide the objects into 4 by drawing and assign a stream to each of them.

I'm just wondering if this can cause problems, as the tessellator uses callback functions. Can 2 threads execute the same callback at the same time that this callback does not have access to the global ant variables?

Are there any other ways to optimize OpenGL drawing with multithreading?

+5
source share
2 answers

"Can 2 threads" , w40? " .

OpenGL , glBegin/glEnd (, DisplayList). GPU (, ), .

, . Shader Model 4.

+1

, - . GL . OpenGL.

+2

All Articles