X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture2d.cpp;fp=source%2Ftexture2d.cpp;h=dac671fdfa52fcae265d088b2cb9d14f918a9a56;hp=daede1836332ca9c2b72a41edf5634a99a09abb1;hb=ffe1debbd757d20f7250fd8572c2c46cd901f559;hpb=5f78db03b3285c977760a41da1e3927720e50352 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) {