diff options
author | Hans Goudey <h.goudey@me.com> | 2022-01-03 22:52:39 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-01-03 22:52:55 +0300 |
commit | 675d3cdd699d8c59cd886bcf5849e25002a69792 (patch) | |
tree | 15a25b1407896d872bf8d2e96ae03775a9e9e056 /source/blender/gpu/opengl/gl_shader.cc | |
parent | 4e44cfa3d9969f0f3e175b53f116f377278a3245 (diff) |
Cleanup: Clang tidy
Diffstat (limited to 'source/blender/gpu/opengl/gl_shader.cc')
-rw-r--r-- | source/blender/gpu/opengl/gl_shader.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/opengl/gl_shader.cc b/source/blender/gpu/opengl/gl_shader.cc index cd2c3caad46..8367b0de02b 100644 --- a/source/blender/gpu/opengl/gl_shader.cc +++ b/source/blender/gpu/opengl/gl_shader.cc @@ -47,7 +47,7 @@ GLShader::GLShader(const char *name) : Shader(name) { #if 0 /* Would be nice to have, but for now the Deferred compilation \ * does not have a GPUContext. */ - BLI_assert(GLContext::get() != NULL); + BLI_assert(GLContext::get() != nullptr); #endif shader_program_ = glCreateProgram(); @@ -58,7 +58,7 @@ GLShader::~GLShader() { #if 0 /* Would be nice to have, but for now the Deferred compilation \ * does not have a GPUContext. */ - BLI_assert(GLContext::get() != NULL); + BLI_assert(GLContext::get() != nullptr); #endif /* Invalid handles are silently ignored. */ glDeleteShader(vert_shader_); |