diff options
| author | Xiaohong Bao <bao@lindenlab.com> | 2011-05-10 13:57:41 -0600 | 
|---|---|---|
| committer | Xiaohong Bao <bao@lindenlab.com> | 2011-05-10 13:57:41 -0600 | 
| commit | 2a61d908e790bfd554f3f0968b320a6e2f4d42c4 (patch) | |
| tree | 9e7cd6854a5e6b6c8d6cea31d9d4a8b8f649af7e /indra/llrender/llimagegl.cpp | |
| parent | e32d1cf7564dd38664781ea7360fa8daa132961c (diff) | |
| parent | b5c834c6fdcee7d7238bebfc561ecee3ecca3589 (diff) | |
Merge
Diffstat (limited to 'indra/llrender/llimagegl.cpp')
| -rw-r--r-- | indra/llrender/llimagegl.cpp | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp index e8e98211f1..d4ffd6f88e 100644 --- a/indra/llrender/llimagegl.cpp +++ b/indra/llrender/llimagegl.cpp @@ -967,12 +967,14 @@ BOOL LLImageGL::setSubImage(const U8* datap, S32 data_width, S32 data_height, S3  	}  	if (mTexName == 0)  	{ -		llwarns << "Setting subimage on image without GL texture" << llendl; +		// *TODO: Re-enable warning?  Ran into thread locking issues? DK 2011-02-18 +		//llwarns << "Setting subimage on image without GL texture" << llendl;  		return FALSE;  	}  	if (datap == NULL)  	{ -		llwarns << "Setting subimage on image with NULL datap" << llendl; +		// *TODO: Re-enable warning?  Ran into thread locking issues? DK 2011-02-18 +		//llwarns << "Setting subimage on image with NULL datap" << llendl;  		return FALSE;  	} @@ -1100,6 +1102,7 @@ void LLImageGL::setManualImage(U32 target, S32 miplevel, S32 intformat, S32 widt  //the texture is assiciate with some image by calling glTexImage outside LLImageGL  BOOL LLImageGL::createGLTexture()  { +	if (gHeadlessClient) return FALSE;  	if (gGLManager.mIsDisabled)  	{  		llwarns << "Trying to create a texture while GL is disabled!" << llendl; @@ -1128,6 +1131,7 @@ BOOL LLImageGL::createGLTexture()  BOOL LLImageGL::createGLTexture(S32 discard_level, const LLImageRaw* imageraw, S32 usename/*=0*/, BOOL to_create, S32 category)  { +	if (gHeadlessClient) return FALSE;  	if (gGLManager.mIsDisabled)  	{  		llwarns << "Trying to create a texture while GL is disabled!" << llendl; | 
