1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 09:53:50 +00:00
This commit is contained in:
gus 2014-08-12 13:32:56 +02:00
parent e9cc1df69e
commit d4d8f07bf3

View file

@ -130,20 +130,6 @@ bool CSVRender::PagedWorldspaceWidget::adjustCells()
}
pixelBuffer->unlock();
texture->load();
/*Ogre::HardwarePixelBufferSharedPtr buffer = texture->getBuffer();
buffer->lock(Ogre::HardwareBuffer::HBL_DISCARD);
const Ogre::PixelBox &pb = buffer->getCurrentLock();
/// Update the contents of pb here
/// Image data starts at pb.data and has format pb.format
/// Here we assume data.format is PF_X8R8G8B8 so we can address pixels as uint32.
uchar *data = static_cast<uchar*>(pb.data);
memcpy(data, img.bits(), buffer->getSizeInBytes());
std::cout << buffer->getSizeInBytes() << std::endl << img.byteCount();
/// Unlock the buffer again (frees it for use by the GPU)
buffer->unlock();*/
}
Ogre::MaterialPtr material;