[PATCH v2] winex11.drv: Make the GL context current even if no drawables were given.
Ken Thomases
ken at codeweavers.com
Tue Feb 23 20:53:02 CST 2016
On Feb 23, 2016, at 7:46 PM, Charles Davis <cdavis5x at gmail.com> wrote:
> - if (ret)
> - {
> - NtCurrentTeb()->glContext = ctx;
> - ctx->has_been_current = TRUE;
> - ctx->hdc = hdc;
> - ctx->drawables[0] = gl->drawable;
> - ctx->drawables[1] = gl->drawable;
> - ctx->refresh_drawables = FALSE;
> - goto done;
> - }
> + if (ret)
> + {
> + NtCurrentTeb()->glContext = ctx;
> + ctx->has_been_current = TRUE;
> + ctx->hdc = NULL;
> + ctx->drawables[0] = drawable;
> + ctx->drawables[1] = drawable;
> + ctx->refresh_drawables = FALSE;
> + }
You lost the assignment of hdc to ctx->hdc.
-Ken
More information about the wine-devel
mailing list