summaryrefslogtreecommitdiff
path: root/drivers/gles3/rasterizer_storage_gles3.cpp
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2018-05-27 19:53:10 +1000
committerGitHub <noreply@github.com>2018-05-27 19:53:10 +1000
commit6c649bd785b0901b0fcba37673f5256626d3f92d (patch)
treed2b7f6c61cf4b09d247c00c781d43ea75c96a94a /drivers/gles3/rasterizer_storage_gles3.cpp
parent130fd6bcb88d7b297b13c3ed20a715b5ab9cce47 (diff)
parentf4638d16f132c80a001cb79b30e16348fcaef8f6 (diff)
Merge pull request #19029 from BastiaanOlij/more_viewport_texture_fixes
Fixed generating radiance texture when using viewport texture for sky
Diffstat (limited to 'drivers/gles3/rasterizer_storage_gles3.cpp')
-rw-r--r--drivers/gles3/rasterizer_storage_gles3.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp
index 85ae69f8b8..11ab957458 100644
--- a/drivers/gles3/rasterizer_storage_gles3.cpp
+++ b/drivers/gles3/rasterizer_storage_gles3.cpp
@@ -1356,6 +1356,8 @@ void RasterizerStorageGLES3::sky_set_texture(RID p_sky, RID p_panorama, int p_ra
ERR_FAIL_COND(!texture);
}
+ texture = texture->get_ptr(); //resolve for proxies
+
glBindVertexArray(0);
glDisable(GL_CULL_FACE);
glDisable(GL_DEPTH_TEST);
@@ -5895,12 +5897,9 @@ 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 {
+ t = t->get_ptr(); //resolve for proxies
target = t->target;
tex = t->tex_id;
}