Files
OpenSceneGraph/include/osg
Robert Osfield 551d2b6479 From Ulrich Hertlein, "not sure how severe this is but I believe there's a bug in
Texture.cpp:applyTexImage2D_subload:

<code>
unsigned char* data = = (unsigned char*)image->data();
if (needImageRescale) {
 // allocates rescale buffer
 data = new unsigned char[newTotalSize];

 // calls gluScaleImage into the data buffer
}

const unsigned char* dataPtr = image->data();
// subloads 'dataPtr'

// deletes 'data'
</code>

In effect, the scaled data would never be used.

I've also replaced bits of duplicate code in Texture1D/2D/2DArray/3D/Cubemap/Rectangle
that checks if the texture image can/should be unref'd with common functionality in
Texture.cpp.

"
2010-09-14 13:19:55 +00:00
..
2009-02-11 10:41:55 +00:00
2006-07-18 15:21:48 +00:00
2010-04-30 19:41:24 +00:00
2006-07-18 15:21:48 +00:00
2006-07-18 15:21:48 +00:00
2006-07-18 15:21:48 +00:00
2007-05-14 16:16:22 +00:00
2006-07-18 15:21:48 +00:00
2009-01-30 10:55:28 +00:00
2008-05-12 10:16:40 +00:00
2006-07-18 15:21:48 +00:00
2009-07-28 06:00:23 +00:00
2010-02-25 18:03:14 +00:00
2006-07-18 15:21:48 +00:00
2009-01-30 10:55:28 +00:00
2006-07-18 15:21:48 +00:00
2006-07-18 15:21:48 +00:00
2008-08-18 10:47:43 +00:00
2009-01-30 10:55:28 +00:00
2009-01-30 10:55:28 +00:00
2009-01-07 10:32:59 +00:00
2010-04-30 19:41:24 +00:00
2006-07-18 15:21:48 +00:00
2006-07-18 15:21:48 +00:00
2006-07-18 15:21:48 +00:00
2009-01-30 10:55:28 +00:00