mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
* move GL init to main thread
* fix potential bug causing the screen bitmap to be created twice
This commit is contained in:
@ -120,7 +120,14 @@ void uiGLFreeContext(uiGLContext* ctx)
|
||||
|
||||
void uiGLMakeContextCurrent(uiGLContext* ctx)
|
||||
{
|
||||
wglMakeCurrent(ctx->dc, ctx->rc);
|
||||
if (ctx == NULL)
|
||||
{
|
||||
wglMakeCurrent(NULL, NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
if (wglGetCurrentContext() == ctx->rc) return;
|
||||
int res = wglMakeCurrent(ctx->dc, ctx->rc);
|
||||
}
|
||||
|
||||
void *uiGLGetProcAddress(const char* proc)
|
||||
|
Reference in New Issue
Block a user