Drawable Renderer (#1570), Tweak shader names

This commit is contained in:
Tim Sylvester
2023-05-12 10:09:45 -07:00
committed by Bart Louwers
parent f51c0820d3
commit 99af73ebaa
2 changed files with 3 additions and 3 deletions

View File

@@ -213,7 +213,7 @@ void RenderBackgroundLayer::update(const int32_t layerIndex,
std::unique_lock<std::mutex> guard(mutex);
if (!shader) {
shader = context.getGenericShader(shaders, "BackgroundDrawable");
shader = context.getGenericShader(shaders, "BackgroundShader");
}
const auto removeAll = [&](){

View File

@@ -277,10 +277,10 @@ void RenderFillLayer::update(const int32_t layerIndex,
std::unique_lock<std::mutex> guard(mutex);
if (!shader) {
shader = context.getGenericShader(shaders, "FillDrawable");
shader = context.getGenericShader(shaders, "FillShader");
}
if (!renderTiles || renderTiles->empty()) {
if (!shader || !renderTiles || renderTiles->empty()) {
if (tileLayerGroup) {
stats.tileDrawablesRemoved += tileLayerGroup->getDrawableCount();
tileLayerGroup->clearDrawables();