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
commit be5a47e75d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;