wined3d: Remove some redundant code.
This commit is contained in:
parent
f460b38612
commit
3489f1b9b1
|
@ -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();
|
|
||||||
return WINED3DERR_NOTAVAILABLE;
|
|
||||||
}
|
|
||||||
|
|
||||||
LEAVE_GL();
|
LEAVE_GL();
|
||||||
if (object->glCtx == NULL) {
|
|
||||||
ERR("Error in context creation !\n");
|
if (!object->glCtx) {
|
||||||
return WINED3DERR_INVALIDCALL;
|
ERR("Failed to create GLX context\n");
|
||||||
|
return WINED3DERR_NOTAVAILABLE;
|
||||||
} 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);
|
||||||
|
|
Loading…
Reference in New Issue