Commit 61795f0e authored by Christopher Tenter's avatar Christopher Tenter

fix fbo resizing

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20190 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c29ca632
......@@ -462,11 +462,11 @@ void FBO::resize( GLsizei _width, GLsizei _height, bool _forceResize )
#ifdef GL_ARB_texture_multisample
case GL_TEXTURE_2D_MULTISAMPLE:
#endif
attachTexture2D(it->first, rt->dim[0], rt->dim[1], rt->internalFormat, rt->format, rt->wrapMode, rt->minFilter, rt->magFilter);
attachTexture2D(it->first, _width, _height, rt->internalFormat, rt->format, rt->wrapMode, rt->minFilter, rt->magFilter);
break;
case GL_TEXTURE_3D:
attachTexture3D(it->first, rt->dim[0], rt->dim[1], rt->dim[2], rt->internalFormat, rt->format, rt->wrapMode, rt->minFilter, rt->magFilter);
attachTexture3D(it->first, _width, _height, rt->dim[2], rt->internalFormat, rt->format, rt->wrapMode, rt->minFilter, rt->magFilter);
break;
default:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment