[Mesa-dev] [PATCH 3/4] mesa: remove unnecessary check in _mesa_init_transform_feedback_object()

Samuel Pitoiset samuel.pitoiset at gmail.com
Thu Aug 24 11:43:20 UTC 2017


All callers already check that, and the common behaviour is to
check in the _mesa_new_XXX() helpers anyway.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/mesa/main/transformfeedback.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c
index e30448ea4f..62a40050ce 100644
--- a/src/mesa/main/transformfeedback.c
+++ b/src/mesa/main/transformfeedback.c
@@ -193,9 +193,6 @@ void
 _mesa_init_transform_feedback_object(struct gl_transform_feedback_object *obj,
                                      GLuint name)
 {
-   if (!obj)
-      return;
-
    obj->Name = name;
    obj->RefCount = 1;
    obj->EverBound = GL_FALSE;
-- 
2.14.1



More information about the mesa-dev mailing list