i915/i965: remove commented out warning
authorTimothy Arceri <timothy.arceri@collabora.com>
Fri, 30 Sep 2016 06:37:03 +0000 (16:37 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Fri, 30 Sep 2016 23:24:33 +0000 (09:24 +1000)
The warning was also the wrong location, it should have been
in the else.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i915/intel_fbo.h
src/mesa/drivers/dri/i965/intel_fbo.h

index 114dd68..769dab8 100644 (file)
@@ -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;
 }
index 89894cd..e6f6156 100644 (file)
@@ -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;
 }