diff options
author | Alejandro Marzini | 2010-07-19 02:36:43 +0000 |
---|---|---|
committer | Alejandro Marzini | 2010-07-19 02:36:43 +0000 |
commit | 6215f2b6d47ca2235e2a56f841aefe78f022d43b (patch) | |
tree | a6b6410d7d7f41984ad297af99542cb53367aa2d /backends/graphics/opengl/gltexture.cpp | |
parent | 7ad017bde0eb6850b1c2c5012a88ae3cc9dbd75c (diff) | |
download | scummvm-rg350-6215f2b6d47ca2235e2a56f841aefe78f022d43b.tar.gz scummvm-rg350-6215f2b6d47ca2235e2a56f841aefe78f022d43b.tar.bz2 scummvm-rg350-6215f2b6d47ca2235e2a56f841aefe78f022d43b.zip |
OPENGL: Fix issue when GFX changes.
svn-id: r51013
Diffstat (limited to 'backends/graphics/opengl/gltexture.cpp')
-rw-r--r-- | backends/graphics/opengl/gltexture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/graphics/opengl/gltexture.cpp b/backends/graphics/opengl/gltexture.cpp index 70833c4098..e1fb5ba00d 100644 --- a/backends/graphics/opengl/gltexture.cpp +++ b/backends/graphics/opengl/gltexture.cpp @@ -98,7 +98,7 @@ GLTexture::~GLTexture() { void GLTexture::refresh() { // Generates the texture ID for GL //CHECK_GL_ERROR( glGenTextures(1, &_textureName) ); - updateBuffer(_surface.pixels, _surface.bytesPerPixel, 0, 0, _surface.w, _surface.h); + //updateBuffer(_surface.pixels, _surface.bytesPerPixel, 0, 0, _surface.w, _surface.h); } void GLTexture::allocBuffer(GLuint w, GLuint h) { @@ -117,7 +117,7 @@ void GLTexture::allocBuffer(GLuint w, GLuint h) { _textureWidth = nextHigher2(w); _textureHeight = nextHigher2(h); } - _surface.pitch = w * _bytesPerPixel; + _surface.pitch = _textureWidth * _bytesPerPixel; //_surface.create(w, h, _bytesPerPixel); |