From 072bf41c037ef4c7aab23f1afa769c65c9dfdf73 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 6 Sep 2018 17:26:38 -0300 Subject: [PATCH] Ability for Light2D to use a proxy texture, fixes #17067 --- drivers/gles3/rasterizer_canvas_gles3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gles3/rasterizer_canvas_gles3.cpp b/drivers/gles3/rasterizer_canvas_gles3.cpp index da87a71679a..fc41f171646 100644 --- a/drivers/gles3/rasterizer_canvas_gles3.cpp +++ b/drivers/gles3/rasterizer_canvas_gles3.cpp @@ -1591,6 +1591,7 @@ void RasterizerCanvasGLES3::canvas_render_items(Item *p_item_list, int p_z, cons if (!t) { glBindTexture(GL_TEXTURE_2D, storage->resources.white_tex); } else { + t = t->get_ptr(); glBindTexture(t->target, t->tex_id); }