For decades, Texas construction contracts routinely shifted all risk downhill: a general contractor's subcontract would require the sub to indemnify the GC for any injury or damage on the project — even when the GC itself was negligent. In 2011 the Texas Legislature ended that practice with the Texas Anti-Indemnity Act, codified at Insurance Code Chapter 151, effective for construction contracts entered into on or after January 1, 2012.
The core rule is §151.102: a provision in a construction contract is void and unenforceable to the extent it requires one party (the indemnitor — usually the sub) to indemnify or hold harmless another party (the indemnitee — usually the GC or owner) against a claim caused by the negligence or fault of the indemnitee, its agents, or anyone other than the indemnitor. In plain terms: you can't make a sub pay for the GC's own negligence.
Texas joined the large group of states with anti-indemnity statutes, but its version is notable for explicitly closing the "additional insured" workaround (next section) — which is what makes §151.102 bite on the insurance side, not just the contract side.