diff options
author | Bastiaan Olij <mux213@gmail.com> | 2018-05-18 22:02:14 +1000 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2018-05-18 22:02:14 +1000 |
commit | 124774860c9f431eb103258fd9ca4694d1500e8f (patch) | |
tree | 2064767bde8d2ce9dcd9aa804a0cedc1e796da8d /drivers | |
parent | 942e0c483247af1e84b7992be48f8ef6317d45c6 (diff) |
Fixes issue that a viewport texture doesn't work with particle shader
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gles3/rasterizer_storage_gles3.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index 945df35456..85ae69f8b8 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; |