From 2969599880f898219700aa0e314a870e6e480178 Mon Sep 17 00:00:00 2001 From: Xiaohong Bao Date: Mon, 30 Aug 2010 18:06:45 -0600 Subject: a try to fix EXT-6791: [crashhunters] Intel 965 Crash in glCopyTexSubImage2D --- indra/newview/lldynamictexture.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'indra/newview') diff --git a/indra/newview/lldynamictexture.cpp b/indra/newview/lldynamictexture.cpp index ed35546ca3..a3d2941114 100644 --- a/indra/newview/lldynamictexture.cpp +++ b/indra/newview/lldynamictexture.cpp @@ -54,6 +54,13 @@ LLViewerDynamicTexture::LLViewerDynamicTexture(S32 width, S32 height, S32 compon { llassert((1 <= components) && (components <= 4)); + if(gGLManager.mDebugGPU) + { + if(components == 3) + { + mComponents = 4 ; //convert to 32bits. + } + } generateGLTexture(); llassert( 0 <= order && order < ORDER_COUNT ); -- cgit v1.2.3