Allan Tong : wined3d: Call ActivateContext before any gl call in IWineD3DSurfaceImpl_Release.