summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/GLInterface/EGL.cpp
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2014-03-09 21:14:26 +0100
committerTillmann Karras <tilkax@gmail.com>2014-03-09 21:14:26 +0100
commitd802d392811be44d34ae9cd23f616db93e54c50f (patch)
treef9aa8831a0731ea246bd921d979f4bffa7f07bd0 /Source/Core/DolphinWX/GLInterface/EGL.cpp
parentf28116b7da6aac6069084596dc4dbf866bdebfd8 (diff)
clang-modernize -use-nullptr
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
Diffstat (limited to 'Source/Core/DolphinWX/GLInterface/EGL.cpp')
-rw-r--r--Source/Core/DolphinWX/GLInterface/EGL.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinWX/GLInterface/EGL.cpp b/Source/Core/DolphinWX/GLInterface/EGL.cpp
index 6a25aa4411..20db616921 100644
--- a/Source/Core/DolphinWX/GLInterface/EGL.cpp
+++ b/Source/Core/DolphinWX/GLInterface/EGL.cpp
@@ -31,7 +31,7 @@ void cInterfaceEGL::DetectMode()
return;
EGLint num_configs;
- EGLConfig *config = NULL;
+ EGLConfig *config = nullptr;
bool supportsGL = false, supportsGLES2 = false, supportsGLES3 = false;
// attributes for a visual in RGBA format with at least
@@ -43,7 +43,7 @@ void cInterfaceEGL::DetectMode()
EGL_NONE };
// Get how many configs there are
- if (!eglChooseConfig( GLWin.egl_dpy, attribs, NULL, 0, &num_configs))
+ if (!eglChooseConfig( GLWin.egl_dpy, attribs, nullptr, 0, &num_configs))
{
INFO_LOG(VIDEO, "Error: couldn't get an EGL visual config\n");
goto err_exit;
@@ -186,7 +186,7 @@ bool cInterfaceEGL::Create(void *&window_handle)
GLWin.native_window = Platform.CreateWindow();
- GLWin.egl_surf = eglCreateWindowSurface(GLWin.egl_dpy, config, GLWin.native_window, NULL);
+ GLWin.egl_surf = eglCreateWindowSurface(GLWin.egl_dpy, config, GLWin.native_window, nullptr);
if (!GLWin.egl_surf)
{
INFO_LOG(VIDEO, "Error: eglCreateWindowSurface failed\n");
@@ -218,6 +218,6 @@ void cInterfaceEGL::Shutdown()
NOTICE_LOG(VIDEO, "Could not destroy window surface.");
if(!eglTerminate(GLWin.egl_dpy))
NOTICE_LOG(VIDEO, "Could not destroy display connection.");
- GLWin.egl_ctx = NULL;
+ GLWin.egl_ctx = nullptr;
}
}