TINYGL: Do not write to the depth buffer if depth test is disabled.

According to the OpenGL spec the depth buffer should not be updated if the depth test is disabled, even if the depth mask is non-zero (see the notes in https://www.khronos.org/opengles/sdk/docs/man/xhtml/glDepthFunc.xml).