Commit 211311c1 authored by Jakob Weiss's avatar Jakob Weiss

Fixed bug regarding creating textures without initial data

parent a15fc331
......@@ -46,7 +46,6 @@ Texture::Texture(GLenum type, const cgt::ivec3& dimensions, GLint internalFormat
, bpp_(0)
{
init();
uploadTexture(nullptr, calcMatchingPixelFormat(internalFormat), calcMatchingPixelDataType(internalFormat));
}
Texture::Texture(GLenum type, const cgt::ivec3& dimensions, GLint internalFormat, GLubyte* data, GLint format, GLenum dataType, Filter filter /*= LINEAR*/)
......
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