summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/transformfeedback.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-08-24 13:43:20 +0200
committerSamuel Pitoiset <[email protected]>2017-08-25 11:11:46 +0200
commit4f532ab30ed8b5fb1132224323d0d471ae453db6 (patch)
tree0d13bb515701ec3932ab531014acb51cc905f43a /src/mesa/main/transformfeedback.c
parent41c7c2d968961e1cca2d5308f3066b2b840be68b (diff)
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 <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/transformfeedback.c')
-rw-r--r--src/mesa/main/transformfeedback.c3
1 files changed, 0 insertions, 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;