wined3d: Only try to acquire a context in surface_cleanup() if there are GL resources...
commit2b88b2d3511c4d9c76867c379b09b547f5946a6d
authorHenri Verbeet <hverbeet@codeweavers.com>
Wed, 4 Aug 2010 09:10:26 +0000 (4 11:10 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 4 Aug 2010 11:24:21 +0000 (4 13:24 +0200)
tree165c9b23adafcf12c4b01621a090ffefb6dcd927
parent43a86d1e56469418acbfe3c89434b50cbf924a25
wined3d: Only try to acquire a context in surface_cleanup() if there are GL resources to be destroyed.

The reason we're in surface_cleanup() might for example be that context
creation failed.
dlls/wined3d/surface.c