Changeset 12986
- Timestamp:
- 02/20/12 13:03:14 (15 months ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 3 modified
-
include/osg/Image (modified) (2 diffs)
-
src/osg/Image.cpp (modified) (1 diff)
-
src/osg/Texture2D.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Image
r12979 r12986 93 93 #endif 94 94 95 #ifndef GL_OES_compressed_ETC1_RGB8_texture 96 #define GL_ETC1_RGB8_OES 0x8D64 97 #endif 98 95 99 namespace osg { 96 100 … … 397 401 } 398 402 403 /** returns false for texture formats that do not support texture subloading */ 404 bool supportsTextureSubloading() const; 405 399 406 /** Return true if this image is translucent - i.e. it has alpha values that are less 1.0 (when normalized). */ 400 407 virtual bool isImageTranslucent() const; -
OpenSceneGraph/trunk/src/osg/Image.cpp
r12979 r12986 1432 1432 } 1433 1433 1434 bool Image::supportsTextureSubloading() const 1435 { 1436 switch(_internalTextureFormat) 1437 { 1438 case GL_ETC1_RGB8_OES: 1439 return false; 1440 default: 1441 return true; 1442 } 1443 } 1444 1434 1445 1435 1446 template <typename T> -
OpenSceneGraph/trunk/src/osg/Texture2D.cpp
r12442 r12986 248 248 applyTexParameters(GL_TEXTURE_2D,state); 249 249 250 if (textureObject->isAllocated() )250 if (textureObject->isAllocated() && image->supportsTextureSubloading()) 251 251 { 252 252 //OSG_NOTICE<<"Reusing texture object"<<std::endl;
