Skip to content

Commit

Permalink
Fix stencil clipping not rendering properly
Browse files Browse the repository at this point in the history
  • Loading branch information
EIREXE committed Jan 15, 2025
1 parent 741f3eb commit f6aa1b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gles3/rasterizer_canvas_gles3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,9 @@ void RasterizerCanvasGLES3::_render_items(RID p_to_render_target, int p_item_cou
#endif

glDisable(GL_SCISSOR_TEST);
glStencilMask(0xFF);
glClear(GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
glDisable(GL_STENCIL_TEST);
glClear(GL_DEPTH_BUFFER_BIT);
current_clip = nullptr;

GLES3::CanvasShaderData::BlendMode last_blend_mode = GLES3::CanvasShaderData::BLEND_MODE_MIX;
Expand Down

0 comments on commit f6aa1b4

Please sign in to comment.