d3d_transform_stack_empty()
Returns: Boolean
You can use this function to check and see if the transformation
stack is empty of transforms or not.
if !d3d_transform_stack_empty() d3d_transform_stack_clear();
The above code will check the transformation stack and if it is not empty it clears it.