Ability for Light2D to use a proxy texture, fixes #17067

This commit is contained in:
Juan Linietsky 2018-09-06 17:26:38 -03:00
parent 39e8aca1b7
commit 072bf41c03

View File

@ -1591,6 +1591,7 @@ void RasterizerCanvasGLES3::canvas_render_items(Item *p_item_list, int p_z, cons
if (!t) { if (!t) {
glBindTexture(GL_TEXTURE_2D, storage->resources.white_tex); glBindTexture(GL_TEXTURE_2D, storage->resources.white_tex);
} else { } else {
t = t->get_ptr();
glBindTexture(t->target, t->tex_id); glBindTexture(t->target, t->tex_id);
} }