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
1 changed files with 4 additions and 0 deletions

View File

@ -2492,6 +2492,10 @@ void RasterizerCanvasGLES2::render_joined_item(const BItemJoined &p_bij, RenderI
} }
#endif #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 // all the joined items will share the same state with the first item
Item *ci = bdata.item_refs[p_bij.first_item_ref].item; Item *ci = bdata.item_refs[p_bij.first_item_ref].item;