[core] Ensure that a BackendScope exists when doing GL calls
This commit is contained in:
committed by
John Firebaugh
parent
d7227e13a7
commit
8e5214144e
@@ -267,8 +267,9 @@ void Map::Impl::render(View& view) {
|
||||
|
||||
updateFlags = Update::Nothing;
|
||||
|
||||
gl::Context& context = backend.getContext();
|
||||
if (!painter) {
|
||||
painter = std::make_unique<Painter>(backend.getContext(), transform.getState(), pixelRatio, programCacheDir);
|
||||
painter = std::make_unique<Painter>(context, transform.getState(), pixelRatio, programCacheDir);
|
||||
}
|
||||
|
||||
if (mode == MapMode::Continuous) {
|
||||
|
||||
Reference in New Issue
Block a user