1
0
Fork 0

Fixed usage of proxy textures on GLES2 sky

(cherry picked from commit eed4655644)
This commit is contained in:
paru 2021-05-07 18:33:35 +02:00 committed by Rémi Verschelde
parent bb6b38680c
commit 523faf0444
No known key found for this signature in database
GPG Key ID: C3336907360768E1
2 changed files with 4 additions and 0 deletions

View File

@ -2639,6 +2639,8 @@ void RasterizerSceneGLES2::_draw_sky(RasterizerStorageGLES2::Sky *p_sky, const C
RasterizerStorageGLES2::Texture *tex = storage->texture_owner.getornull(p_sky->panorama);
ERR_FAIL_COND(!tex);
tex = tex->get_ptr(); //resolve for proxies
glActiveTexture(GL_TEXTURE0);
glBindTexture(tex->target, tex->tex_id);

View File

@ -1229,6 +1229,8 @@ void RasterizerStorageGLES2::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) and more
{
glBindBuffer(GL_ARRAY_BUFFER, 0);