From 0b429393a73ef6d7b9997ce13567422a2b69550b Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 20 Sep 2012 06:56:59 +0000 Subject: [PATCH] compile fix svn path=/trunk/boinc/; revision=26130 --- clientgui/MainDocument.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/clientgui/MainDocument.cpp b/clientgui/MainDocument.cpp index ee9836b8ca..18f5f6ce35 100644 --- a/clientgui/MainDocument.cpp +++ b/clientgui/MainDocument.cpp @@ -2404,11 +2404,9 @@ wxString suspend_reason_wxstring(int reason) { } bool uses_gpu(RESULT* r) { - WORKUNIT* wup = r->workunit; - if (!wup) return false; - APP_VERSION* avp = wup->app_version; + APP_VERSION* avp = r->avp; if (!avp) return false; - return (avp->gpu_count > 0); + return (avp->gpu_usage > 0); } wxString result_description(RESULT* result, bool show_resources) {