Fixed program and shader invalidation at drawing time