wined3d: Add a WARN to IWineD3DDeviceImpl_SetFrontBackBuffers() about potentially being called without a GL context.

This commit is contained in:
Henri Verbeet 2009-06-29 10:11:26 +02:00 committed by Alexandre Julliard
parent 7d3beb6b79
commit 4075e45d81
1 changed files with 2 additions and 0 deletions

View File

@ -6351,6 +6351,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetFrontBackBuffers(IWineD3DDevice *ifa
/* What to do about the context here in the case of multithreading? Not sure.
* This function is called by IDirect3D7::CreateDevice so in theory its initialization code
*/
WARN("No active context?\n");
ENTER_GL();
if(!Swapchain->backBuffer[0]) {
/* GL was told to draw to the front buffer at creation,