BACKENDS: Use nullptr

Using clang-tidy modernize-use-nullptr
This commit is contained in:
Orgad Shaneh 2021-11-13 23:33:13 +02:00 committed by Filippos Karapetis
parent b421c24eaf
commit 44219dfa1a
34 changed files with 211 additions and 211 deletions

View file

@ -91,7 +91,7 @@ void GLTexture::create() {
if (_width != 0 && _height != 0) {
// Allocate storage for OpenGL texture.
GL_CALL(glTexImage2D(GL_TEXTURE_2D, 0, _glIntFormat, _width, _height,
0, _glFormat, _glType, NULL));
0, _glFormat, _glType, nullptr));
}
}
@ -135,7 +135,7 @@ void GLTexture::setSize(uint width, uint height) {
if (oldWidth != _width || oldHeight != _height) {
bind();
GL_CALL(glTexImage2D(GL_TEXTURE_2D, 0, _glIntFormat, _width,
_height, 0, _glFormat, _glType, NULL));
_height, 0, _glFormat, _glType, nullptr));
}
}
}