mirror of https://github.com/bjornbytes/lovr.git
Fix default shader switching;
This commit is contained in:
parent
173c9a258e
commit
8c63f47b8a
|
@ -2447,7 +2447,7 @@ static void flushPipeline(Pass* pass, Draw* draw, Shader* shader) {
|
||||||
pipeline->dirty = true;
|
pipeline->dirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pipeline->info.shader && pipeline->info.shader != shader->gpu) {
|
if (!pipeline->shader && pipeline->info.shader != shader->gpu) {
|
||||||
pipeline->info.shader = shader->gpu;
|
pipeline->info.shader = shader->gpu;
|
||||||
pipeline->info.flags = NULL;
|
pipeline->info.flags = NULL;
|
||||||
pipeline->info.flagCount = 0;
|
pipeline->info.flagCount = 0;
|
||||||
|
|
Loading…
Reference in New Issue