Drawable Renderer (#1570), Tweak shader names
This commit is contained in:
committed by
Bart Louwers
parent
f51c0820d3
commit
99af73ebaa
@@ -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 = [&](){
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user