diff options
Diffstat (limited to 'src/opengl1graphics.cpp')
-rw-r--r-- | src/opengl1graphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl1graphics.cpp b/src/opengl1graphics.cpp index 0386b4c7d..3be9490ef 100644 --- a/src/opengl1graphics.cpp +++ b/src/opengl1graphics.cpp @@ -510,7 +510,7 @@ void OpenGL1Graphics::prepareScreenshot() glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, w, h, 0, - GL_RGBA, GL_UNSIGNED_BYTE, 0); + GL_RGBA, GL_UNSIGNED_BYTE, nullptr); glBindTexture(GL_TEXTURE_2D, 0); // create a renderbuffer object to store depth info |