On Feb 23, 2016, at 7:46 PM, Charles Davis cdavis5x@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