Skip to content

Commit c49a0dc

Browse files
joliver82Nehon
authored andcommitted
Update GLImageFormats.java
1 parent 266d8b0 commit c49a0dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jme3-core/src/main/java/com/jme3/renderer/opengl/GLImageFormats.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public static GLImageFormat[][] getFormatsForCaps(EnumSet<Caps> caps) {
220220

221221
// NOTE: OpenGL ES 2.0 does not support DEPTH_COMPONENT as internal format -- fallback to 16-bit depth.
222222
if (caps.contains(Caps.OpenGLES20)) {
223-
format(formatToGL, Format.Depth, GL.GL_DEPTH_COMPONENT16, GL.GL_DEPTH_COMPONENT, GL.GL_UNSIGNED_BYTE);
223+
format(formatToGL, Format.Depth, GL.GL_DEPTH_COMPONENT16, GL.GL_DEPTH_COMPONENT, GL.GL_UNSIGNED_SHORT);
224224
} else {
225225
format(formatToGL, Format.Depth, GL.GL_DEPTH_COMPONENT, GL.GL_DEPTH_COMPONENT, GL.GL_UNSIGNED_BYTE);
226226
}

0 commit comments

Comments
 (0)