Commit 3489f1b9 authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

wined3d: Remove some redundant code.

parent f460b386
...@@ -1582,16 +1582,11 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic ...@@ -1582,16 +1582,11 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
XFree(object->visInfo); XFree(object->visInfo);
object->visInfo = NULL; object->visInfo = NULL;
if (NULL == object->glCtx) {
ERR("cannot create glxContext\n");
LEAVE_GL(); LEAVE_GL();
return WINED3DERR_NOTAVAILABLE;
}
LEAVE_GL(); if (!object->glCtx) {
if (object->glCtx == NULL) { ERR("Failed to create GLX context\n");
ERR("Error in context creation !\n"); return WINED3DERR_NOTAVAILABLE;
return WINED3DERR_INVALIDCALL;
} else { } else {
TRACE("Context created (HWND=%p, glContext=%p, Window=%ld, VisInfo=%p)\n", TRACE("Context created (HWND=%p, glContext=%p, Window=%ld, VisInfo=%p)\n",
object->win_handle, object->glCtx, object->win, object->visInfo); object->win_handle, object->glCtx, object->win, object->visInfo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment