From b29c1e41969ace4fa51a01ca6b557c5f9c61014c Mon Sep 17 00:00:00 2001
From: Drake Arconis <drake@alchemyviewer.org>
Date: Mon, 1 Dec 2014 15:51:25 -0500
Subject: [PATCH] Fix timer query crash

---
 indra/newview/llglsandbox.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/llglsandbox.cpp b/indra/newview/llglsandbox.cpp
index 08535adfb0..903f64efc3 100755
--- a/indra/newview/llglsandbox.cpp
+++ b/indra/newview/llglsandbox.cpp
@@ -881,7 +881,7 @@ void LLViewerObjectList::renderObjectBeacons()
 
 F32 gpu_benchmark()
 {
-	if (!gGLManager.mHasShaderObjects)
+	if (!gGLManager.mHasShaderObjects || !gGLManager.mHasTimerQuery)
 	{ //don't bother benchmarking the fixed function
 		return -1.f;
 	}
-- 
GitLab