wined3d: Remove some redundant code.

This commit is contained in:
H. Verbeet 2006-06-27 00:32:32 +02:00 committed by Alexandre Julliard
parent f460b38612
commit 3489f1b9b1
1 changed files with 4 additions and 9 deletions

View File

@ -1582,16 +1582,11 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
XFree(object->visInfo);
object->visInfo = NULL;
if (NULL == object->glCtx) {
ERR("cannot create glxContext\n");
LEAVE_GL();
return WINED3DERR_NOTAVAILABLE;
}
LEAVE_GL();
if (object->glCtx == NULL) {
ERR("Error in context creation !\n");
return WINED3DERR_INVALIDCALL;
if (!object->glCtx) {
ERR("Failed to create GLX context\n");
return WINED3DERR_NOTAVAILABLE;
} else {
TRACE("Context created (HWND=%p, glContext=%p, Window=%ld, VisInfo=%p)\n",
object->win_handle, object->glCtx, object->win, object->visInfo);