From 4f532ab30ed8b5fb1132224323d0d471ae453db6 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 24 Aug 2017 13:43:20 +0200 Subject: [PATCH] mesa: remove unnecessary check in _mesa_init_transform_feedback_object() All callers already check that, and the common behaviour is to check in the _mesa_new_XXX() helpers anyway. Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- 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 e30448ea4f6..62a40050cef 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.30.2