diff --git a/src/landscape/C4Particles.cpp b/src/landscape/C4Particles.cpp index cf92e2716..ad6463a32 100644 --- a/src/landscape/C4Particles.cpp +++ b/src/landscape/C4Particles.cpp @@ -23,6 +23,7 @@ #ifndef USE_CONSOLE // headers for particle excution +#include #include #include #include @@ -30,7 +31,7 @@ #include #include #include -#include +#include #endif @@ -1290,6 +1291,12 @@ void C4ParticleSystem::DoInit() assert (glGenBuffers != 0 && "Your graphics card does not seem to support buffer objects."); useBufferObjectWorkaround = false; + + // Every window in developers' mode has an own OpenGL context at the moment. Certain objects are not shared between contexts. + // In that case we can just use the slower workaround without VBAs and VBOs to allow the developer to view particles in every viewport. + // The best solution would obviously be to make all windows use a single OpenGL context. This has to be considered as a workaround. + if (Application.isEditor) + useBufferObjectWorkaround = true; } void C4ParticleSystem::ExecuteCalculation()