1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Fixed generating radiance texture when using viewport texture for sky

This commit is contained in:
Bastiaan Olij
2018-05-19 12:37:26 +10:00
parent 228b09bafb
commit f4638d16f1
2 changed files with 6 additions and 8 deletions

View File

@@ -2363,10 +2363,9 @@ void RasterizerSceneGLES3::_draw_sky(RasterizerStorageGLES3::Sky *p_sky, const C
ERR_FAIL_COND(!tex);
glActiveTexture(GL_TEXTURE0);
if (tex->proxy && tex->proxy->tex_id)
glBindTexture(tex->target, tex->proxy->tex_id);
else
glBindTexture(tex->target, tex->tex_id);
tex = tex->get_ptr(); //resolve for proxies
glBindTexture(tex->target, tex->tex_id);
if (storage->config.srgb_decode_supported && tex->srgb && !tex->using_srgb) {