*554 OPINION
Appellant General Agents Insurance Company of America, Inc. (“Gainsco”) challenges the trial court’s rendition of partial summary judgment in favor of ap-pellees Ahmed El Naggar and El Naggar Fine Arts Furniture, Inc. (collectively “El Naggar”) in El Naggar’s suit against Gain-sco to recover insurance proceeds. Gain-sco contends that the trial court erred in granting El Naggar’s partial summary-judgment motion and implicitly denying Gainsco’s cross-motion on the ground that a buy-back agreement between Gainsco and Traxel Construction, Inc. is void as against public policy. We reverse and render.
I.Factual and PROCEDURAL Background
El Naggar contracted with Frederick Bell, owner of Traxel Construction, Inc., for the construction of a steel building and a concrete slab. Appellant Gainsco issued a commercial general liability (CGL) policy to Traxel. Problems arose over the construction project and, in 2001, El Naggar filed suit against Bell, Traxel, and other parties. 1
The first trial ended in a mistrial. Just after the mistrial, Gainsco and Traxel entered into a “buy-back agreement.” 2 Under the terms of the agreement, Gainsco repurchased Traxel’s CGL policy for $50,000, and Traxel released Gainsco from any and all claims or demands arising out of the policy. The lawsuit proceeded to a second trial, which resulted in a judgment in El Naggar’s favor against Traxel only. 3
El Naggar then sued Gainsco along with other of Traxel’s insurers to collect the judgment. 4 El Naggar alleged several claims against Gainsco, including one in which it sought a declaratory judgment that the buy-back agreement between Gainsco and Traxel violated either the Texas Insurance Code, Texas public policy, or the Texas Uniform Fraudulent Transfer Act, and is unconscionable. The parties filed cross-motions for summary judgment on the validity of the policy buy-back agreement, arguing over whether the agreement is void as against public policy. 5 *555 On September 11, 2006, the trial court granted El Naggar’s motion for summary judgment, declared the buy-back agreement void, and ordered that the CGL policy was not affected by the buy-back agreement. On June 13, 2007, Gainsco filed a motion to sever the interlocutory summary-judgment ruling and abate El Nag-gar’s remaining claims pending appeal of that ruling. On July 10, 2007, the trial court denied the motion.
Gainsco subsequently filed a petition for writ of mandamus requesting this court to order the Honorable Elizabeth Ray to (1) vacate her July 10, 2007 order, (2) sever the interlocutory summary judgment to render it final and appealable, and (3) abate the proceedings on El Naggar’s remaining claims. On May 15, 2008, we issued a substitute opinion that conditionally granted the petition for writ of mandamus and directed the trial court to vacate its July 10, 2007 order denying Gainsco’s motion to sever and abate, and grant the same.
On May 21, 2008, El Naggar filed a nonsuit, without prejudice, on its claims for declaratory relief, specifically noting that the nonsuit included the declaratory-judgment relief relating to the buy-back agreement. On May 23, 2008, Judge Ray signed an order taking notice of the non-suit. On June 27, 2008, the trial court granted the severance and abatement in accordance with this court’s opinion. The June 27, 2008 order, however, severed the interlocutory summary judgment into an “A” case that already existed. Gainsco filed its first notice of appeal on July 14, 2008. 6
El Naggar filed yet another nonsuit after the severance, specifically seeking to nonsuit without prejudice the partial summary-judgment ruling on the buy-back agreement. On July 14, 2008, the Honorable John T. Wooldridge, sitting for Judge Ray, signed an order taking notice of the nonsuit and dismissing the severed action from the trial court’s docket. On August 6, 2008, Judge Wooldridge signed an amended order of severance that (1) vacates Judge Ray’s June 27, 2008 order granting severance and abatement and (2) severs the declaratory-judgment claim relating to the buy-back agreement into “B.” In that order, Judge Wooldridge states that El Naggar’s nonsuit “moots” the partial summary-judgment ruling in El Nag-gar’s favor; however, Judge Wooldridge did not vacate the partial summary-judgment order. In a separate order, Judge Wooldridge lifted the abatement and set El Naggar’s remaining claims for trial on December 8, 2008. 7 Gainsco filed its second notice of appeal on August 15, 2008.
On July 31, 2008, Gainsco filed a motion to enforce the writ conditionally granted in our May 15, 2008 substitute opinion. This court granted the motion on September 9, 2008, and ordered the 'sitting judge of the 165th District Court to abate the proceedings with regard to El Naggar’s remaining claims pending this appeal. El Naggar filed a motion for rehearing and rehearing en banc, contending that the nonsuit made moot this court’s granting of the petition for writ of mandamus to sever the declaratory-judgment claim and abate El Nag-gar’s remaining claims. The motions were overruled. El Naggar filed a petition for writ of mandamus with the Texas Supreme *556 Court, which was denied on March 27, 2009.
II. Analysis
A. The Effect of Nonsuit on the Partial Summary-Judgment Ruling
As a preliminary matter, El Nag-gar challenges this court’s jurisdiction, contending that there is no longer a justiciable controversy because El Naggar filed a nonsuit without prejudice on whether the buy-back agreement is void as against public policy, rendering the partial summary-judgment ruling on that issue moot. 8
The mootness doctrine prevents courts from rendering advisory opinions, and under article II, section 1 of the Texas Constitution, courts have no jurisdiction to issue advisory opinions.
See Valley Baptist Med. Ctr. v. Gonzalez,
Here, El Naggar filed a nonsuit, without prejudice, on its claims for declaratory-judgment relief after receiving a favorable ruling on whether the buy-back agreement between Gainsco and Traxel is void as against public policy. At the time, El Naggar’s eleventh amended petition included a request for declaratory judgment (1) to declare that the buy-back agreement between Gainsco and Traxel violates either the Texas Insurance Code, Texas public policy, or the Texas Uniform Fraudulent Transfer Act, and is unconscionable; (2) to determine the rights, status or other legal relations between El Naggar and other parties to the case; and (3) to determine various insurance responsibilities. The trial court took notice of the nonsuit. El Naggar then filed its twelfth amended petition omitting the declaratory-judgment claims. The trial court severed the issue of the validity of the buy-back agreement adjudicated in the partial summary-judgment ruling. After severance, El Naggar filed another nonsuit without prejudice, seeking specifically to nonsuit the partial summary-judgment ruling. The trial court took notice of El Naggar’s nonsuit and dismissed the action from the docket. The trial court later vacated the first severance order and severed “the non-suited and moot claims and orders” into action “B.”
A nonsuit does not vitiate a decision on the merits, including a partial summary judgment, unless the decision on the merits is set aside by the trial court.
Hyundai Motor Co. v. Alvarado,
El Naggar contends that these rules do not apply here because El Naggar received a
favorable
ruling on whether the buy-back agreement violates public policy. Favorable or not, that issue had already been adjudicated.
See Johnson v. Evans,
No. 14-08-00610-CV,
B. Whether the Buy-Back Agreement Violates Public Policy
In a single issue, Gainsco argues that the trial court erred in granting El Nag-gar’s motion for partial summary judgment and implicitly denying Gainsco’s cross-motion on the ground that the buyback agreement is void as against public policy.
Under Texas Rule of Appellate Procedure 33.1(a)(2)(A), error may be preserved when the trial court rules on a motion implicitly.
See
Tex.R.App. P. 33.1(a)(2)(A). When parties present cross-motions that are opposed and mutually exclusive, an order that grants one motion may implicitly deny the other.
See Walker v. Gutierrez,
Declaratory judgments rendered by summary judgment are reviewed under the same standards as govern summary judgments generally.
Lidawi v. Progressive County Mut. Ins. Co.,
When, as here, both parties move for summary judgment and the trial court grants one motion and denies the other, we review the summary-judgment evidence, determine all questions presented, and render such judgment as the trial court should have rendered.
Comm’rs Court v. Agan,
Whether a contract is contrary to public policy is a question of law.
Hoover Slovacek LLP v. Walton,
Gainsco and Traxel entered into a buy-back agreement after the first trial between El Naggar and Traxel ended in a mistrial. Under the terms of the agreement, Gainsco repurchased the CGL policy it had issued to Traxel for a sum of $50,000 in exchange for Traxel’s agreement to release Gainsco from any and all claims arising out of the policy. In its motion for summary judgment, El Naggar contends that the buy-back agreement is contrary to public policy because Gainsco and Traxel were aware of El Naggar⅛ claims when they entered into the buy-back agreement, and the execution of the buy-back agreement leaves El Naggar without a remedy. El Naggar also argues that insurance was a prerequisite to Traxel’s being awarded the construction contract, a fact the parties *559 dispute, and that the buy-back agreement circumvents that agreement.
In its motion for summary judgment, El Naggar relies heavily on the Texarkana case
Ranger Insurance Company v. Ward
to establish that the buy-back agreement between Gainsco and Traxel is void as against public policy. The
Ranger
case, however, is distinguishable. In that case, Ranger issued an insurance policy to Thompson Flying Services.
Ward,
The controlling factor in Ranger was that the insurance policy was statutorily required. Id. at 825 (“Section 76.111 of the Texas Agriculture Code required that a commercial aerial applicator of pesticide maintain a policy of liability insurance in a minimum amount or provide a surety bond in that same amount.”). The court stated that central to the interpretation and application of the compulsory insurance statute was its expression of purpose, i.e. “protecting persons who may suffer damages as a result of the operations of the applicant.” Id. at 825, 829 (citing former Tex. Agrie. Code Ann. § 76.111(a)(2)). The court held that Ranger’s attempt to circumvent the statute and its purpose violated public policy. Id. at 829-30.
El Naggar has not cited a statute requiring the CGL policy issued in this case.
9
Therefore,
Ranger
is distinguishable because it involved circumstances not present here: “two parties, both aware of their likely liability for Landowners’ claims, entering into a release in which the two parties attempt to contract away liability and agree to leave the injured parties without the remedy
intended by the statute in question.” Id.
at 829 (emphasis added). Nor does El Naggar cite any binding authority, either statutory or common law, stating that the buy-back agreement of a CGL policy under the circumstances presented here is void as against public policy.
10
Without strong public-poli
*560
cy reasons against enforcement of the buyback agreement, we decline to declare the buy-back agreement in this case void as against public policy.
See Lawrence,
Gainsco also requests that we render judgment that the buy-back agreement between Gainsco and Traxel is valid and enforceable; however, Gainsco did not plead a declaratory-judgment counterclaim on the validity of the buy-back agreement and does not contend that it did on appeal. In its cross-motion for summary judgment, Gainsco prays for a declaration that the buy-back agreement is not void as against public policy. 11 Therefore, we decline Gainsco’s request to render judgment that the buy-back agreement is valid and enforceable and only render a declaration that the buy-back agreement is not void as against public policy.
III. Conclusion
We hold that the trial court erred by granting El Naggar’s motion for partial summary judgment and implicitly denying Gainsco’s cross-motion on the ground that the buy-back agreement between Gainsco and Traxel is void as against public policy. We reverse and render judgment declaring that the buy-back agreement is not void as against public policy.
Notes
. The summary-judgment evidence includes two reservation-of-rights letters from Gainsco to Traxel in relation to the suit.
. The named parties to the buy-back agreement are Gainsco, Traxel, and Bell, with Traxel and Bell collectively referred to as “Traxel.”
. The final judgment in the underlying suit states that "[bjased upon the joint and several liability against Traxel Construction Inc., the Plaintiff abandons all claims against Frederick Bell.” It also states that all other defendants had either settled their claims or had been nonsuited.
. In the live petition, El Naggar states that it is suing in its capacity individually, as judgment creditor, and as assignee of claims possessed by Traxel.
. On February 6, 2009, the trial court ordered segregation of in-camera documents that were sealed when filed. The documents are (1) El Naggar's reply to Gainsco's response to the motion for summary judgment/response to Gainsco’s cross-motion, (2) El Naggar's procedural and evidentiary objections and El Naggar’s motion to strike Gainsco's summary-judgment evidence, (3) Gainsco's reply to El Naggar’s response to Gainsco’s cross-motion and response to El Naggar’s motion for leave to file deposition testimony, (4) Gainsco’s response to El Naggar’s procedural and evidentiary objections and motion to strike, (5) Gainsco's motion for leave to file a reply to El Naggar's response to Gainsco’s cross-motion and response to El Naggar’s motion for leave to file deposition testimony, and (6) Gainsco's objections to El Naggar’s summary-judgment evidence and motion for ruling on objections lodged at a deposition. These documents were filed in a supplemental clerk’s record and were not filed under seal in this court.
. In the notice of appeal, Gainsco states that it submitted a corrected proposed order of severance and abatement using "B,” but the trial court had not yet signed the order at the time the notice of appeal was filed.
. This order is not dated, but the file stamp indicates it was filed on July 23, 2008.
. Both parties assume that the nonsuit is controlled by Texas Rule of Civil Procedure 162. At least one court has stated that a Rule 162 nonsuit applies to a dismissal of the entire case and does not authorize a plaintiff to dismiss some, but not all, claims against a defendant.
See C/S Solutions, Inc. v. Energy Maint. Servs. Group LLC,
. In its reply to Gainsco’s response to the motion for summary judgment/response to Gainsco's cross-motion for summary judgment, El Naggar cites generally article 21.21, section 4(10) of the Texas Insurance Code as the authority that CGL insurance is for the public’s benefit. See Act of May 10, 2001, 77th Leg., R.S., ch. 290 § 1, 2001 Tex. Gen. Laws 548, 550-51, repealed and recodified by Act of May 22, 2003, 78th Leg., R.S., ch. 1274 §§ 2, 26(a)(1), 2003 Tex. Gen. Laws 3611, 3662, 4138 (current version at Tex. Ins.Code Ann. § 541.060 (West 2009)). First, it is unclear from the record whether the trial court considered the reply/response. The trial court’s order states that it considered El Nag-gar's motion, the response to the motion, and the arguments of counsel. We do not have a record of the summary-judgment hearing. Second, neither article 21.21, section 4(10) of the Texas Insurance Code nor the current version at Texas Insurance Code section 541.060 states that a CGL policy like the one in this case is required for the public’s benefit.
. El Naggar states that the summary-judgment evidence establishes that El Naggar relied on the fact that Traxel had insurance and that this reliance makes the buy-back agreement between Gainsco and Traxel void as against public policy. First, assuming that El *560 Naggar is referring to the deposition testimony of Ahmed El Naggar to support this reliance argument, the record indicates that El Naggar requested leave to include the deposition as part of its summary-judgment evidence, but the record does not include a ruling by the trial court on this request. Second, El Naggar cites no authority for the proposition that third-party reliance makes the buyback agreement void as against public policy. In addition, in its reply/response in the trial court, El Naggar makes a general allegation that the buy-back agreement was not the re-suit of an arm’s length transaction. El Nag-gar does not cite evidence or authority to support its allegation that lack of an arm’s length transaction renders the buy-back agreement void as against public policy.
. Any failure by Gainsco to seek this relief in its pleadings does not present a problem because the issue was tried by consent.
See Marzo Club, LLC v. Columbia Lakes Homeowners Ass’n,
