intel: Only enable GL_ARB_occlusion_query on i965.
authorKristian Høgsberg <krh@redhat.com>
Mon, 25 Feb 2008 17:03:28 +0000 (12:03 -0500)
committerKristian Høgsberg <krh@redhat.com>
Mon, 25 Feb 2008 17:03:28 +0000 (12:03 -0500)
src/mesa/drivers/dri/intel/intel_context.c

index d4c2b0f70ca7be02f1e53eec21810e7a51b5052a..d5cb07de995162da7e5b6a7dffd07b02702f822a 100644 (file)
@@ -281,7 +281,9 @@ static void intelInitExtensions(GLcontext *ctx, GLboolean enable_imaging)
    if (intel == NULL || intel->ttm)
       driInitExtensions(ctx, ttm_extensions, GL_FALSE);
 
-   if (intel == NULL || intel->intelScreen->drmMinor >= 8)
+   if (intel == NULL || 
+       (IS_965(intel->intelScreen->deviceID) && 
+       intel->intelScreen->drmMinor >= 8))
       driInitExtensions(ctx, arb_oc_extensions, GL_FALSE);
 
    if (intel == NULL || IS_965(intel->intelScreen->deviceID))