[Scummvm-cvs-logs] SF.net SVN: scummvm:[51013] scummvm/branches/gsoc2010-opengl/backends/ graphics/opengl/gltexture.cpp
vgvgf at users.sourceforge.net
vgvgf at users.sourceforge.net
Mon Jul 19 04:36:43 CEST 2010
Revision: 51013
http://scummvm.svn.sourceforge.net/scummvm/?rev=51013&view=rev
Author: vgvgf
Date: 2010-07-19 02:36:43 +0000 (Mon, 19 Jul 2010)
Log Message:
-----------
OPENGL: Fix issue when GFX changes.
Modified Paths:
--------------
scummvm/branches/gsoc2010-opengl/backends/graphics/opengl/gltexture.cpp
Modified: scummvm/branches/gsoc2010-opengl/backends/graphics/opengl/gltexture.cpp
===================================================================
--- scummvm/branches/gsoc2010-opengl/backends/graphics/opengl/gltexture.cpp 2010-07-19 02:32:36 UTC (rev 51012)
+++ scummvm/branches/gsoc2010-opengl/backends/graphics/opengl/gltexture.cpp 2010-07-19 02:36:43 UTC (rev 51013)
@@ -98,7 +98,7 @@
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 @@
_textureWidth = nextHigher2(w);
_textureHeight = nextHigher2(h);
}
- _surface.pitch = w * _bytesPerPixel;
+ _surface.pitch = _textureWidth * _bytesPerPixel;
//_surface.create(w, h, _bytesPerPixel);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list