diff options
author | Alejandro Marzini | 2010-07-27 00:30:37 +0000 |
---|---|---|
committer | Alejandro Marzini | 2010-07-27 00:30:37 +0000 |
commit | f7220cfea72840b39e74a00048c5c1c3f3351599 (patch) | |
tree | 2c24d0461dad6d10edc65b9cddce50f4ccfb4a61 /backends/graphics/opengl/gltexture.cpp | |
parent | 141e10184181abcf169f59318179d92ec2e65597 (diff) | |
download | scummvm-rg350-f7220cfea72840b39e74a00048c5c1c3f3351599.tar.gz scummvm-rg350-f7220cfea72840b39e74a00048c5c1c3f3351599.tar.bz2 scummvm-rg350-f7220cfea72840b39e74a00048c5c1c3f3351599.zip |
OPENGL: Commenting.
svn-id: r51338
Diffstat (limited to 'backends/graphics/opengl/gltexture.cpp')
-rw-r--r-- | backends/graphics/opengl/gltexture.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/graphics/opengl/gltexture.cpp b/backends/graphics/opengl/gltexture.cpp index 679538585f..708788eeae 100644 --- a/backends/graphics/opengl/gltexture.cpp +++ b/backends/graphics/opengl/gltexture.cpp @@ -97,6 +97,9 @@ GLTexture::~GLTexture() { } void GLTexture::refresh() { + // Delete previous texture + glDeleteTextures(1, &_textureName); CHECK_GL_ERROR(); + // Generate the texture ID glGenTextures(1, &_textureName); CHECK_GL_ERROR(); _refresh = true; |