]> git.tdb.fi Git - libs/gl.git/blobdiff - source/rendertarget.cpp
Disable mipmaps from various render target textures
[libs/gl.git] / source / rendertarget.cpp
index 8a53e66d2bac06b7adead7bebac9c7d3104f26ef..c651e665fc46064ea2870e7034da0ab93ce081c5 100644 (file)
@@ -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);