X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture2darray.cpp;h=1ecb4cf2be69e1b34a28f1f8b8cea643b84e2325;hp=4d37263c76b75c59ddb06f5e03d6e0096cd43439;hb=bec07999d95b76f4b47cffcc564d0cd0afc0435e;hpb=99e833421259dd90b164a9c49d63c936c343c65f diff --git a/source/texture2darray.cpp b/source/texture2darray.cpp index 4d37263c..1ecb4cf2 100644 --- a/source/texture2darray.cpp +++ b/source/texture2darray.cpp @@ -48,7 +48,7 @@ void Texture2DArray::layer_image(unsigned level, unsigned z, const Graphics::Ima PixelStore pstore = PixelStore::from_image(img); BindRestore _bind_ps(pstore); - layer_image(level, z, img.get_data()); + layer_image(level, z, img.get_pixels()); }