http://bugs.winehq.org/show_bug.cgi?id=5418
Summary: dlls/wined3d/device.c lines 1282-1295 Product: Wine Version: 0.9.15. Platform: All OS/Version: All Status: UNCONFIRMED Severity: trivial Priority: P5 Component: test AssignedTo: wine-bugs@winehq.org ReportedBy: master_up@post.cz
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; } else { TRACE("Context created (HWND=%p, glContext=%p, Window=%ld, VisInfo=%p)\n", object->win_handle, object->glCtx, object->win, object->visInfo); }
------------ I'm not sure, but LEAVE_GL(); cannot change value in object->glCtx. If cannot, the previous code check the same twice. Or there is a good reson to do this?