From: Timothy Arceri Date: Fri, 30 Sep 2016 06:37:03 +0000 (+1000) Subject: i915/i965: remove commented out warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7064f8674a2084da8ae5dd980ec18361001c8447;p=mesa.git i915/i965: remove commented out warning The warning was also the wrong location, it should have been in the else. Reviewed-by: Ian Romanick --- diff --git a/src/mesa/drivers/dri/i915/intel_fbo.h b/src/mesa/drivers/dri/i915/intel_fbo.h index 114dd68b596..769dab8689d 100644 --- a/src/mesa/drivers/dri/i915/intel_fbo.h +++ b/src/mesa/drivers/dri/i915/intel_fbo.h @@ -89,10 +89,8 @@ static inline struct intel_renderbuffer * intel_renderbuffer(struct gl_renderbuffer *rb) { struct intel_renderbuffer *irb = (struct intel_renderbuffer *) rb; - if (irb && irb->Base.Base.ClassID == INTEL_RB_CLASS) { - /*_mesa_warning(NULL, "Returning non-intel Rb\n");*/ + if (irb && irb->Base.Base.ClassID == INTEL_RB_CLASS) return irb; - } else return NULL; } diff --git a/src/mesa/drivers/dri/i965/intel_fbo.h b/src/mesa/drivers/dri/i965/intel_fbo.h index 89894cd3e86..e6f6156022d 100644 --- a/src/mesa/drivers/dri/i965/intel_fbo.h +++ b/src/mesa/drivers/dri/i965/intel_fbo.h @@ -130,10 +130,8 @@ static inline struct intel_renderbuffer * intel_renderbuffer(struct gl_renderbuffer *rb) { struct intel_renderbuffer *irb = (struct intel_renderbuffer *) rb; - if (irb && irb->Base.Base.ClassID == INTEL_RB_CLASS) { - /*_mesa_warning(NULL, "Returning non-intel Rb\n");*/ + if (irb && irb->Base.Base.ClassID == INTEL_RB_CLASS) return irb; - } else return NULL; }