clang-tidy: Enforce modernize-use-nullptr
This commit is contained in:
parent
b18942d429
commit
3b3e2374c9
24 changed files with 98 additions and 100 deletions
|
|
@ -140,7 +140,7 @@ Dictionary detect_wgl() {
|
|||
PFNWGLCREATECONTEXTATTRIBSARBPROC gd_wglCreateContextAttribsARB = nullptr;
|
||||
gd_wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)gd_wglGetProcAddress("wglCreateContextAttribsARB");
|
||||
if (gd_wglCreateContextAttribsARB) {
|
||||
HGLRC new_hRC = gd_wglCreateContextAttribsARB(hDC, 0, attribs);
|
||||
HGLRC new_hRC = gd_wglCreateContextAttribsARB(hDC, nullptr, attribs);
|
||||
if (new_hRC) {
|
||||
if (gd_wglMakeCurrent(hDC, new_hRC)) {
|
||||
PFNWGLGETSTRINGPROC gd_wglGetString = (PFNWGLGETSTRINGPROC)GetProcAddress(module, "glGetString");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue