Clean up depth testing code.
SoftGpu: Implement texture functions.
SoftGpu: Implement color doubling and color addition.