Commit 5a327eed authored by Robert Menzel's avatar Robert Menzel

fixed bug 1615

parent 9cc0268e
......@@ -29,7 +29,7 @@ SharedTexture2D loadTexture2D( const std::string &_filename )
ACGL::Utils::error() << "can't create Texture from file " << _filename << " creating small empty texture instead." << std::endl;
texture->resize( glm::uvec2(4,4) );
} else {
texture->setImageData( loadTextureData( _filename ) );
texture->setImageData( data );
}
texture->generateMipmaps(); // calculates all remaining mipmap levels
......
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