From 124774860c9f431eb103258fd9ca4694d1500e8f Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Fri, 18 May 2018 22:02:14 +1000 Subject: [PATCH] Fixes issue that a viewport texture doesn't work with particle shader --- drivers/gles3/rasterizer_storage_gles3.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index 945df35456b..85ae69f8b8e 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -5895,7 +5895,10 @@ void RasterizerStorageGLES3::update_particles() { tex = resources.white_tex; } break; } + } else if (t->proxy && t->proxy->tex_id) { + target = t->proxy->target; + tex = t->proxy->tex_id; } else { target = t->target;