enigma-dev/enigma-dev — pull request #357 by RobertBColton (2013-08-26 08:11:44+00:00)
Title: Fixed Draw GUI and other Graphics Anomalies *Merge*

Polygonz did the right thing he set up Draw GUI just like Studio did, I
made the mistake of assuming the wireframe cube that was white was a
seperate object drawing its sprite 2x. Anyway, polygonz was right on the
money but there were a few other things stopping it from including me not
clearing the depth buffer and stupid fuck checks for d3d functions as to
whether or not the d3d mode is enabled, this is wrong, you should be able
to set hidden surface removal outside of 3D mode. Also whoever implemented
zwriteenable does not understand how it actually works.
d3d_set_hidden(false) cleas the entire depth buffer in Game Maker, test
for yourself, d3d_set_zwriteenable(false) just temporarily disables
writing to the depth buffer but does not destroy it or clear its values
this is useful for particle effects or other billboards which use cutout
transparent interpolated textures and the functions name was derived from
the DirectX equivelant. Please merge when ready.