winex11: Simplify confusing condition and error messages in wglShareLists.

Mathematically, ((a && b) || b) == b. Moreover, test_sharelists in
dlls/opengl32/tests/opengl.c checks that wglShareLists can share lists
from a source context that has been current.
This commit is contained in:
Alex Henrie 2023-01-05 08:58:22 -07:00 committed by Alexandre Julliard
parent d418cb7551
commit aa70bdb5d6

View file

@ -1931,14 +1931,14 @@ static BOOL glxdrv_wglShareLists(struct wgl_context *org, struct wgl_context *de
* current or when it hasn't shared display lists before.
*/
if((org->has_been_current && dest->has_been_current) || dest->has_been_current)
if(dest->has_been_current)
{
ERR("Could not share display lists, one of the contexts has been current already !\n");
ERR("Could not share display lists because the destination context has already been current\n");
return FALSE;
}
else if(dest->sharing)
{
ERR("Could not share display lists because hglrc2 has already shared lists before\n");
ERR("Could not share display lists because the destination context has already shared lists\n");
return FALSE;
}
else