Fix some OpenGL context problems

This commit is contained in:
Grim Maple 2022-10-22 14:35:37 +03:00
parent c85118e2cc
commit 2915bece47
1 changed files with 5 additions and 5 deletions

View File

@ -477,12 +477,12 @@ class Win32Window : Window {
hDC = GetDC(_hwnd); hDC = GetDC(_hwnd);
useOpengl = sharedGLContext.reinit(hDC, platform.multisamples); useOpengl = sharedGLContext.reinit(hDC, platform.multisamples);
}
if(!sharedGLContext.createCoreRC(hDC)) if(!sharedGLContext.createCoreRC(hDC))
{ {
Log.d("Unable to create Core OpenGL"); Log.d("Unable to create Core OpenGL");
throw new Exception("Unable to create Core OpenGL"); throw new Exception("Unable to create Core OpenGL");
}
} }
} }
} }