[gl canvas] add texture memory barrier between raster pass and blit pass

This commit is contained in:
martinfouilleul 2023-07-29 12:36:55 +02:00
parent 442d86386e
commit a4763d2da8
1 changed files with 2 additions and 0 deletions

View File

@ -1286,6 +1286,8 @@ void mg_gl_render_batch(mg_gl_canvas_backend* backend,
glBindBuffer(GL_DISPATCH_INDIRECT_BUFFER, backend->rasterDispatchBuffer); glBindBuffer(GL_DISPATCH_INDIRECT_BUFFER, backend->rasterDispatchBuffer);
glDispatchComputeIndirect(0); glDispatchComputeIndirect(0);
glMemoryBarrier(GL_TEXTURE_FETCH_BARRIER_BIT);
if(!err) if(!err)
{ {
err = glGetError(); err = glGetError();