draw/gs: make sure geometry shaders don't overflow
[mesa.git] / src / glsl / linker.cpp
index 29856b080157b50db11ac98eced0dbe0fe11fb71..2b30d2b652d044839eaa86895a458708e3a4bb22 100644 (file)
@@ -1067,13 +1067,11 @@ link_intrastage_shaders(void *mem_ctx,
 
    free(linking_shaders);
 
-#ifdef DEBUG
    /* At this point linked should contain all of the linked IR, so
     * validate it to make sure nothing went wrong.
     */
    if (linked)
       validate_ir_tree(linked->ir);
-#endif
 
    /* Make a pass over all variable declarations to ensure that arrays with
     * unspecified sizes have a size specified.  The size is inferred from the