Merge pull request #19004 from BastiaanOlij/fix_particles_viewport_texture

Fixes issue that a viewport texture doesn't work with particle shader
This commit is contained in:
Juan Linietsky 2018-05-18 09:07:19 -03:00 committed by GitHub
commit 5e997c9483
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5895,7 +5895,10 @@ void RasterizerStorageGLES3::update_particles() {
tex = resources.white_tex; tex = resources.white_tex;
} break; } break;
} }
} else if (t->proxy && t->proxy->tex_id) {
target = t->proxy->target;
tex = t->proxy->tex_id;
} else { } else {
target = t->target; target = t->target;