浏览代码

Fix missing buffer memory barrier on gl after dispatch

clementlandrin 7 月之前
父节点
当前提交
620d23fc4e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      h3d/impl/GlDriver.hx

+ 1 - 0
h3d/impl/GlDriver.hx

@@ -1987,6 +1987,7 @@ class GlDriver extends Driver {
 
 
 	override function computeDispatch(x:Int = 1, y:Int = 1, z:Int = 1) {
 	override function computeDispatch(x:Int = 1, y:Int = 1, z:Int = 1) {
 		GL.dispatchCompute(x,y,z);
 		GL.dispatchCompute(x,y,z);
+		GL.memoryBarrier(GL.BUFFER_UPDATE_BARRIER_BIT);
 	}
 	}
 
 
 	override function allocQuery(kind:QueryKind) {
 	override function allocQuery(kind:QueryKind) {