TINYGL: Do not write to the depth buffer if depth test is disabled.
Merge pull request #1027 from Akz-/tinygl-depth-fix

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