fix an issue with release graphics resources
If someone released graphics resources it sets the callback to an empty Window but leaves the Context Set. If they then set the the context back to the same context is was not setting the new WindowId on the texture. Arguably Releasing graphcis resources should set the Context to NULL but I am going with this fix as it more closely matches the old behavior of leaving Context set.
Showing with 5 additions and 1 deletion