diff options
Diffstat (limited to 'indra/llui')
| -rw-r--r-- | indra/llui/llui.cpp | 14 | 
1 files changed, 11 insertions, 3 deletions
| diff --git a/indra/llui/llui.cpp b/indra/llui/llui.cpp index b7894f5bf7..212672b809 100644 --- a/indra/llui/llui.cpp +++ b/indra/llui/llui.cpp @@ -992,10 +992,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();  } | 
