Main repository of MikuMikuStudio
修訂 | 867f2f77cd1e5636ea547df20c022d0723516421 (tree) |
---|---|
時間 | 2013-08-04 04:30:25 |
作者 | kobayasi <kobayasi@pscn...> |
Commiter | kobayasi |
Fix clearBuffers bug.
glDepthMask must be called in clearBuffers.
@@ -465,6 +465,10 @@ public final class OGLESShaderRenderer implements Renderer { | ||
465 | 465 | } |
466 | 466 | if (depth) { |
467 | 467 | bits |= GLES20.GL_DEPTH_BUFFER_BIT; |
468 | + if (context.depthWriteEnabled == false) { | |
469 | + GLES20.glDepthMask(true); | |
470 | + context.depthWriteEnabled = true; | |
471 | + } | |
468 | 472 | } |
469 | 473 | if (stencil) { |
470 | 474 | bits |= GLES20.GL_STENCIL_BUFFER_BIT; |