X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftexture2d.cpp;h=dac671fdfa52fcae265d088b2cb9d14f918a9a56;hb=61c8b6e824977ce025c979005b141ff4bb02b0e9;hp=daede1836332ca9c2b72a41edf5634a99a09abb1;hpb=a40fc85277dba5c34402a0e703d038efd30cc57b;p=libs%2Fgl.git diff --git a/source/texture2d.cpp b/source/texture2d.cpp index daede183..dac671fd 100644 --- a/source/texture2d.cpp +++ b/source/texture2d.cpp @@ -252,8 +252,8 @@ bool Texture2D::AsyncLoader::process() } else if(phase==1) { - pixel_buffer.data(n_bytes, 0); - mapped_address = reinterpret_cast(pixel_buffer.map(WRITE_ONLY)); + pixel_buffer.storage(n_bytes); + mapped_address = reinterpret_cast(pixel_buffer.map()); } else if(phase==2) {