diff options
| author | Dave Parks <davep@lindenlab.com> | 2011-11-02 11:46:18 -0500 | 
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2011-11-02 11:46:18 -0500 | 
| commit | 55f69de90c9b32c7fa25f16ec7d1f41064eff614 (patch) | |
| tree | 054b0d99490cc6600b3be0e3cb2aaf7918f3fe50 /indra/llui | |
| parent | 8f47f2222c207938c8fc55158a6fff64ccf1e781 (diff) | |
| parent | 1bea08335b6c2fa31f414db2fe7316a118b2ec18 (diff) | |
merge
Diffstat (limited to 'indra/llui')
| -rw-r--r-- | indra/llui/llaccordionctrltab.cpp | 2 | ||||
| -rw-r--r-- | indra/llui/llnotifications.cpp | 2 | ||||
| -rw-r--r-- | indra/llui/llui.cpp | 30 | ||||
| -rw-r--r-- | indra/llui/llview.cpp | 2 | 
4 files changed, 22 insertions, 14 deletions
| diff --git a/indra/llui/llaccordionctrltab.cpp b/indra/llui/llaccordionctrltab.cpp index 4b0b7c561d..7a5f9f9fd6 100644 --- a/indra/llui/llaccordionctrltab.cpp +++ b/indra/llui/llaccordionctrltab.cpp @@ -973,7 +973,7 @@ void LLAccordionCtrlTab::drawChild(const LLRect& root_rect,LLView* child)  		if ( root_rect.overlaps(screen_rect)  && LLUI::sDirtyRect.overlaps(screen_rect))  		{ -			glMatrixMode(GL_MODELVIEW); +			gGL.matrixMode(LLRender::MM_MODELVIEW);  			LLUI::pushMatrix();  			{  				LLUI::translate((F32)child->getRect().mLeft, (F32)child->getRect().mBottom, 0.f); diff --git a/indra/llui/llnotifications.cpp b/indra/llui/llnotifications.cpp index 8f7025a9a6..d232e27ef2 100644 --- a/indra/llui/llnotifications.cpp +++ b/indra/llui/llnotifications.cpp @@ -1624,7 +1624,7 @@ LLNotificationPtr LLNotifications::find(LLUUID uuid)  	LLNotificationSet::iterator it=mItems.find(target);  	if (it == mItems.end())  	{ -		llwarns << "Tried to dereference uuid '" << uuid << "' as a notification key but didn't find it." << llendl; +		LL_DEBUGS("Notifications") << "Tried to dereference uuid '" << uuid << "' as a notification key but didn't find it." << llendl;  		return LLNotificationPtr((LLNotification*)NULL);  	}  	else diff --git a/indra/llui/llui.cpp b/indra/llui/llui.cpp index 79ad99a770..c6f7e28027 100644 --- a/indra/llui/llui.cpp +++ b/indra/llui/llui.cpp @@ -153,11 +153,11 @@ void gl_state_for_2d(S32 width, S32 height)  	F32 window_width = (F32) width;//gViewerWindow->getWindowWidth();  	F32 window_height = (F32) height;//gViewerWindow->getWindowHeight(); -	glMatrixMode(GL_PROJECTION); -	glLoadIdentity(); -	glOrtho(0.0f, llmax(window_width, 1.f), 0.0f, llmax(window_height,1.f), -1.0f, 1.0f); -	glMatrixMode(GL_MODELVIEW); -	glLoadIdentity(); +	gGL.matrixMode(LLRender::MM_PROJECTION); +	gGL.loadIdentity(); +	gGL.ortho(0.0f, llmax(window_width, 1.f), 0.0f, llmax(window_height,1.f), -1.0f, 1.0f); +	gGL.matrixMode(LLRender::MM_MODELVIEW); +	gGL.loadIdentity();  	stop_glerror();  } @@ -537,7 +537,7 @@ void gl_draw_scaled_image_with_border(S32 x, S32 y, S32 width, S32 height, LLTex  		}  	} -	gGL.getTexUnit(0)->bind(image); +	gGL.getTexUnit(0)->bind(image, true);  	gGL.color4fv(color.mV); @@ -735,7 +735,7 @@ void gl_draw_scaled_rotated_image(S32 x, S32 y, S32 width, S32 height, F32 degre  	LLGLSUIDefault gls_ui; -	gGL.getTexUnit(0)->bind(image); +	gGL.getTexUnit(0)->bind(image, true);  	gGL.color4fv(color.mV); @@ -788,7 +788,7 @@ void gl_draw_scaled_rotated_image(S32 x, S32 y, S32 width, S32 height, F32 degre  		LLMatrix3 quat(0.f, 0.f, degrees*DEG_TO_RAD); -		gGL.getTexUnit(0)->bind(image); +		gGL.getTexUnit(0)->bind(image, true);  		gGL.color4fv(color.mV); @@ -995,10 +995,18 @@ void gl_rect_2d_checkerboard(const LLRect& rect, GLfloat alpha)  	// ...gray squares  	gGL.color4f( .7f, .7f, .7f, alpha );  	gGL.flush(); -	glPolygonStipple( checkerboard ); -	LLGLEnable polygon_stipple(GL_POLYGON_STIPPLE); -	gl_rect_2d(rect); +	if (!LLGLSLShader::sNoFixedFunction) +	{ //polygon stipple is deprecated +		glPolygonStipple( checkerboard ); + +		LLGLEnable polygon_stipple(GL_POLYGON_STIPPLE); +		gl_rect_2d(rect); +	} +	else +	{ +		gl_rect_2d(rect); +	}  	gGL.flush();  } diff --git a/indra/llui/llview.cpp b/indra/llui/llview.cpp index 3fd7e48428..1644f53978 100644 --- a/indra/llui/llview.cpp +++ b/indra/llui/llview.cpp @@ -1215,7 +1215,7 @@ void LLView::drawChild(LLView* childp, S32 x_offset, S32 y_offset, BOOL force_dr  		if ((childp->getVisible() && childp->getRect().isValid())   			|| force_draw)  		{ -			glMatrixMode(GL_MODELVIEW); +			gGL.matrixMode(LLRender::MM_MODELVIEW);  			LLUI::pushMatrix();  			{  				LLUI::translate((F32)childp->getRect().mLeft + x_offset, (F32)childp->getRect().mBottom + y_offset, 0.f); | 
