wined3d: Don't allocate This->draw_buffers in the error path for Init3D().

This commit is contained in:
H. Verbeet 2008-08-20 22:45:11 +02:00 committed by Alexandre Julliard
parent c33e03cca3
commit 040c33de5a

View file

@ -2254,7 +2254,6 @@ err_out:
if(swapchain) {
IWineD3DSwapChain_Release( (IWineD3DSwapChain *) swapchain);
}
This->draw_buffers = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(GLenum) * GL_LIMITS(buffers));
if(This->stateBlock) {
IWineD3DStateBlock_Release((IWineD3DStateBlock *) This->stateBlock);
This->stateBlock = NULL;