diff --git a/dtool/src/interrogate/typeManager.cxx b/dtool/src/interrogate/typeManager.cxx index ae931742c1..db5b07f58a 100644 --- a/dtool/src/interrogate/typeManager.cxx +++ b/dtool/src/interrogate/typeManager.cxx @@ -1740,7 +1740,8 @@ is_Py_buffer(CPPType *type) { case CPPDeclaration::ST_extension: case CPPDeclaration::ST_struct: - return (type->get_local_name(&parser) == "Py_buffer"); + return (type->get_local_name(&parser) == "Py_buffer" || + type->get_local_name(&parser) == "bufferinfo"); case CPPDeclaration::ST_typedef: return is_Py_buffer(type->as_typedef_type()->_type);