Ensure sweep is updated after being deferred due to lock during initialization

This commit is contained in:
Dan Paulat 2022-04-19 18:12:07 -05:00
parent 2723ad1966
commit bb335ceb31

View file

@ -125,10 +125,12 @@ void RadarProductLayer::Initialize()
gl.glGenBuffers(3, p->vbo_.data()); gl.glGenBuffers(3, p->vbo_.data());
// Update radar sweep // Update radar sweep
p->sweepNeedsUpdate_ = true;
UpdateSweep(); UpdateSweep();
// Create color table // Create color table
gl.glGenTextures(1, &p->texture_); gl.glGenTextures(1, &p->texture_);
p->colorTableNeedsUpdate_ = true;
UpdateColorTable(); UpdateColorTable();
gl.glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); gl.glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
gl.glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); gl.glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);