From Marco Jez, fixed constness of data return type
This commit is contained in:
parent
9e54b00205
commit
2ab78cfe38
@ -179,7 +179,7 @@ class SG_EXPORT Image : public Object
|
||||
return _data+(column*getPixelSizeInBits())/8+row*getRowSizeInBytes()+image*getImageSizeInBytes();
|
||||
}
|
||||
|
||||
inline unsigned char* data(int column, int row=0,int image=0) const
|
||||
inline const unsigned char* data(int column, int row=0,int image=0) const
|
||||
{
|
||||
if (!_data) return NULL;
|
||||
return _data+(column*getPixelSizeInBits())/8+row*getRowSizeInBytes()+image*getImageSizeInBytes();
|
||||
|
@ -885,7 +885,7 @@ bool Image::isImageTranslucent() const
|
||||
{
|
||||
for(int it=0;it<t();++it)
|
||||
{
|
||||
unsigned char* d = data(0,it,ir);
|
||||
const unsigned char* d = data(0,it,ir);
|
||||
switch(_dataType)
|
||||
{
|
||||
case(GL_BYTE): return _findLowerAlphaValueInRow(s(), (char*)d +offset, (char)127, delta);
|
||||
|
Loading…
Reference in New Issue
Block a user