• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Main repository of MikuMikuStudio


Commit MetaInfo

Revision867f2f77cd1e5636ea547df20c022d0723516421 (tree)
Time2013-08-04 04:30:25
Authorkobayasi <kobayasi@pscn...>
Commiterkobayasi

Log Message

Fix clearBuffers bug.

glDepthMask must be called in clearBuffers.

Change Summary

Incremental Difference

--- a/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java
+++ b/engine/src/android/com/jme3/renderer/android/OGLESShaderRenderer.java
@@ -465,6 +465,10 @@ public final class OGLESShaderRenderer implements Renderer {
465465 }
466466 if (depth) {
467467 bits |= GLES20.GL_DEPTH_BUFFER_BIT;
468+ if (context.depthWriteEnabled == false) {
469+ GLES20.glDepthMask(true);
470+ context.depthWriteEnabled = true;
471+ }
468472 }
469473 if (stencil) {
470474 bits |= GLES20.GL_STENCIL_BUFFER_BIT;