mesa: remove unnecessary check in _mesa_init_transform_feedback_object()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 24 Aug 2017 11:43:20 +0000 (13:43 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 25 Aug 2017 09:11:46 +0000 (11:11 +0200)
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@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/transformfeedback.c

index e30448ea4f63ca06ca0801b24d5e44d7865599ab..62a40050cefc231895fab06e63d5367fac4a715a 100644 (file)
@@ -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;