1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-30 16:26:50 +00:00

Merge pull request #38200 from lawnjelly/kessel_screen_read

GLES2 Batching fix canvas texscreen (SCREEN_TEXTURE)
This commit is contained in:
Rémi Verschelde
2020-04-25 16:10:53 +02:00
committed by GitHub

View File

@@ -2492,6 +2492,10 @@ void RasterizerCanvasGLES2::render_joined_item(const BItemJoined &p_bij, RenderI
}
#endif
// this must be reset for each joined item,
// it only exists to prevent capturing the screen more than once per item
state.canvas_texscreen_used = false;
// all the joined items will share the same state with the first item
Item *ci = bdata.item_refs[p_bij.first_item_ref].item;