X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Frendertarget.cpp;h=c651e665fc46064ea2870e7034da0ab93ce081c5;hp=8a53e66d2bac06b7adead7bebac9c7d3104f26ef;hb=9319f1c8ed99866966f20fbab952da673af2257e;hpb=40e1eba6c489e11a4c9b8865ddcd3ec3d9f83818 diff --git a/source/rendertarget.cpp b/source/rendertarget.cpp index 8a53e66d..c651e665 100644 --- a/source/rendertarget.cpp +++ b/source/rendertarget.cpp @@ -133,7 +133,7 @@ void RenderTarget::init(unsigned w, unsigned h, unsigned s, const RenderTargetFo else { tgt.texture = new Texture2D; - tgt.texture->storage(pf, width, height); + tgt.texture->storage(pf, width, height, 1); tgt.texture->set_filter(NEAREST); tgt.texture->set_wrap(CLAMP_TO_EDGE); fbo.attach(att, *tgt.texture);