Could you please share the Application.
As in 1st fig. its +ve feed back and one of the input is 12V (Greater then VCC,VEE) circuit will saturate to -10V. We can apply superposition theorem on this circuit.
i) V(R3) due to OpAmp (10V supply is shorted) will be -3.33V.
ii) V(R3) due 10V supply need to consider the equivalent resistance looking at R3 node. and use Res-div theorem over it.
iii) Addition of both will provide final node voltage.
In 2nd fig. you are forcing the -ve terminal to 5V. Here also output will saturate but to +10V.
Please correct me if I am wrong.